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.
This commit is contained in:
2024-08-16 17:41:20 +02:00
parent a25953ffc2
commit c240083cf0

View File

@@ -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