Skip to content

Commit

Permalink
ci: Skipping publish step on version match
Browse files Browse the repository at this point in the history
  • Loading branch information
IanTapply22 committed May 25, 2024
1 parent 276a520 commit 5dd52ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ jobs:
https://github.com/IanTapply22/Wynncraft/packages/2160010?version=${{needs.version.outputs.version}})
if [[ "$PUBLISHED_VERSION" == *"${{needs.version.outputs.version}}"* ]]; then
echo "Version is already published. Skipping publish step."
exit 0
echo "::set-output name=skip::true"
else
echo "Version not published. Proceeding with publish step."
echo "::set-output name=skip::false"
fi
- name: Publish package
Expand Down

0 comments on commit 5dd52ec

Please sign in to comment.