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