Skip to content

Commit

Permalink
ci: Fix release workflow (#329)
Browse files Browse the repository at this point in the history
The release workflow uses a deprecated syntax, which now fails linting.

This change updates the syntax to the correct version.
  • Loading branch information
olix0r authored Apr 24, 2024
1 parent 9514706 commit c731366
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ jobs:
run: |
ref='${{ github.ref }}'
if [[ "$ref" =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+ ]]; then
echo ::set-output name=publish::true
echo ::set-output name=version::"${ref##refs/tags/}"
echo publish=true >> "$GITHUB_OUTPUT"
echo version="${ref##refs/tags/}" >> "$GITHUB_OUTPUT"
else
sha=${{ github.sha }}
echo ::set-output name=version::"test-${sha:0:7}"
echo version="test-${sha:0:7}" >> "$GITHUB_OUTPUT"
fi
outputs:
publish: ${{ steps.meta.outputs.publish }}
Expand Down

0 comments on commit c731366

Please sign in to comment.