From 7adbefc1c11884ff46e810536f6ed056f22b909c Mon Sep 17 00:00:00 2001 From: Aleksandr Fedorov Date: Tue, 26 Mar 2024 13:58:20 +0300 Subject: [PATCH] ci: github-actions using java 17 --- .github/workflows/artifact.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/artifact.yml b/.github/workflows/artifact.yml index 770c0d56..d8ec1125 100644 --- a/.github/workflows/artifact.yml +++ b/.github/workflows/artifact.yml @@ -15,11 +15,11 @@ jobs: run: | echo "artifact=$(awk '//,/<\/artifactId>/' pom.xml | head -n 1 | sed 's/^[[:space:]]*//g' | sed -n 's:.*\(.*\).*:\1:p')" >> $GITHUB_OUTPUT id: info - - name: Install Java 11 + - name: Install Java 17 uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: '11' + java-version: '17' - name: Build Artifact run: | cd ${{ github.workspace }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 79495d31..98d096ec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,11 +15,11 @@ jobs: echo "version=$(awk '//,/<\/version>/' pom.xml | head -n 1 | sed 's/^[[:space:]]*//g' | sed -n 's:.*\(.*\).*:\1:p')" >> $GITHUB_OUTPUT echo "artifact=$(awk '//,/<\/artifactId>/' pom.xml | head -n 1 | sed 's/^[[:space:]]*//g' | sed -n 's:.*\(.*\).*:\1:p')" >> $GITHUB_OUTPUT id: info - - name: Install Java 11 + - name: Install Java 17 uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: '11' + java-version: '17' - name: Build Artifact run: | cd ${{ github.workspace }}