Skip to content

Commit

Permalink
Update build-and-publish.yml
Browse files Browse the repository at this point in the history
update ::set-output to new environment file syntax:
echo "{name}={value}" >> "$GITHUB_OUTPUT"
  • Loading branch information
AssetOverflow authored May 16, 2024
1 parent 89d9e73 commit 6ddad2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ jobs:
then
if [ "$GITHUB_REF" = "refs/heads/main" ]
then
echo "::set-output name=version::0.0.0.rc"
echo "name=version::0.0.0.rc" >> "$GITHUB_OUTPUT"
else
PR_NUMBER=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')
echo "::set-output name=version::0.0.0.dev${PR_NUMBER}"
echo "name=version::0.0.0.dev${PR_NUMBER}" >> "$GITHUB_OUTPUT"
fi
else
echo "::set-output name=version::${{ github.event.release.tag_name }}"
echo "name=version::${{ github.event.release.tag_name }}" >> "$GITHUB_OUTPUT"
fi
- name: Build
env:
Expand Down

0 comments on commit 6ddad2d

Please sign in to comment.