Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use previous commit, not origin/main
Browse files Browse the repository at this point in the history
MattIPv4 committed Jan 27, 2025
1 parent b95f0fe commit 4d3ea13
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
@@ -22,7 +22,8 @@ jobs:
id: version
run: |
set -e -o pipefail
BEFORE_VERSION=$(git show "${{ github.event.created && 'origin/main' || github.event.before }}:package.json" | jq -r .version)
PREVIOUS_COMMIT=$(git rev-parse HEAD^1)
BEFORE_VERSION=$(git show "${{ github.event.created && '$PREVIOUS_COMMIT' || github.event.before }}:package.json" | jq -r .version)
AFTER_VERSION=$(git show "${{ github.event.after }}:package.json" | jq -r .version)
if [ "$BEFORE_VERSION" != "$AFTER_VERSION" ]; then

0 comments on commit 4d3ea13

Please sign in to comment.