Skip to content

Commit

Permalink
ci: Fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
IanTapply22 committed May 25, 2024
1 parent 2579133 commit 5d1fcd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ jobs:
- name: Compare with published version
id: compare_versions
run: |
PUBLISHED_VERSION=$(curl -s \
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 -r '.[].name' | sort -V | tail -n 1)
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/users/IanTapply22/packages/maven/wynncraft/versions | jq -r '.[].name' | sort -V | tail -n 1)
if [[ "$PUBLISHED_VERSION" == *"${{ steps.version.outputs.version }}"* ]]; then
echo "Version is already published. Skipping publish step."
exit 0
Expand Down

0 comments on commit 5d1fcd4

Please sign in to comment.