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:
6
.github/workflows/CreateRelease.yml
vendored
6
.github/workflows/CreateRelease.yml
vendored
@@ -56,18 +56,18 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
# Check if the version already exists as a tag
|
# Check if the version already exists as a tag
|
||||||
if git rev-parse "refs/tags/${{ env.VERSION }}" >/dev/null 2>&1; then
|
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 "Version ${{ env.VERSION }} already exists as a tag. No release will be created."
|
||||||
echo "::set-output name=skip_release::true"
|
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Compare current version with previous tag
|
# Compare current version with previous tag
|
||||||
if [ "${{ env.VERSION }}" == "${{ env.PREVIOUS_TAG }}" ]; then
|
if [ "${{ env.VERSION }}" == "${{ env.PREVIOUS_TAG }}" ]; then
|
||||||
|
echo "skip_release=true" >> $GITHUB_OUTPUT
|
||||||
echo "Version has not changed. No release will be created."
|
echo "Version has not changed. No release will be created."
|
||||||
echo "::set-output name=skip_release::true"
|
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
echo "::set-output name=skip_release::false"
|
echo "skip_release=false" >> $GITHUB_OUTPUT
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Generate release notes
|
- name: Generate release notes
|
||||||
|
Reference in New Issue
Block a user