Skip to content

Commit

Permalink
ci: Change piping of versions
Browse files Browse the repository at this point in the history
  • Loading branch information
IanTapply22 committed May 25, 2024
1 parent e76c671 commit 5ca1a4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
PUBLISHED_VERSION=$(curl -s \
-u ${{ secrets.GITHUB_USERNAME }}:${{ secrets.GITHUB_TOKEN }} \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/users/IanTapply22/packages/maven/wynncraft/versions | jq '[.[] ] | .[0] .metadata .container .tags[0]')
https://api.github.com/users/IanTapply22/packages/maven/wynncraft/versions | jq -r '.[] | .name')
if [[ "$PUBLISHED_VERSION" == *"${{ steps.check_version.outputs.version }}"* ]]; then
echo "Version is already published. Skipping publish step."
exit 0
Expand Down

0 comments on commit 5ca1a4f

Please sign in to comment.