From c240083cf0630849b4d0e529750f6e22d3ddddb6 Mon Sep 17 00:00:00 2001 From: Max P Date: Fri, 16 Aug 2024 17:41:20 +0200 Subject: [PATCH] Switch to modern `GITHUB_OUTPUT` syntax in CI release workflow Updated the CreateRelease workflow to replace deprecated "::set-output" commands with the newer "$GITHUB_OUTPUT" syntax. This ensures compatibility with the latest GitHub Actions practices and enhances readability of the workflow script. --- .github/workflows/CreateRelease.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CreateRelease.yml b/.github/workflows/CreateRelease.yml index c622f4f..4db6056 100644 --- a/.github/workflows/CreateRelease.yml +++ b/.github/workflows/CreateRelease.yml @@ -56,18 +56,18 @@ jobs: run: | # Check if the version already exists as a tag if git rev-parse "refs/tags/${{ env.VERSION }}" >/dev/null 2>&1; then + echo "skip_release=true" >> $GITHUB_OUTPUT echo "Version ${{ env.VERSION }} already exists as a tag. No release will be created." - echo "::set-output name=skip_release::true" exit 0 fi # Compare current version with previous tag if [ "${{ env.VERSION }}" == "${{ env.PREVIOUS_TAG }}" ]; then + echo "skip_release=true" >> $GITHUB_OUTPUT echo "Version has not changed. No release will be created." - echo "::set-output name=skip_release::true" exit 0 fi - echo "::set-output name=skip_release::false" + echo "skip_release=false" >> $GITHUB_OUTPUT shell: bash - name: Generate release notes