From aeebcdcdc9b408ecb2aa52bac7ad7d354b42a12d Mon Sep 17 00:00:00 2001 From: Samir Romdhani Date: Mon, 14 Aug 2023 15:36:29 +0200 Subject: [PATCH] fix deprecating set-output command Signed-off-by: Samir Romdhani --- .github/workflows/release-project.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/release-project.yml b/.github/workflows/release-project.yml index 42c510cc2..d4cac0398 100644 --- a/.github/workflows/release-project.yml +++ b/.github/workflows/release-project.yml @@ -18,12 +18,6 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Extract tag name - id: extract_tagname - shell: bash - # Extra the tagname form the git reference, value of GITHUB_REF will be something like refs/tags/. - run: echo "##[set-output name=tagname;]$(echo ${GITHUB_REF##*/})" - - name: Set up JDK 17 uses: actions/setup-java@v3 with: @@ -36,7 +30,7 @@ jobs: output_file: custom_maven_settings.xml servers: '[{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]' - name: Set version with Maven - run: mvn -B versions:set -DprocessAllModules=true -DnewVersion=${{ steps.extract_tagname.outputs.tagname }} + run: mvn -B versions:set -DprocessAllModules=true -DnewVersion=${{ github.ref_name }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Deploy with Maven to GitHub Packages