Skip to content

Commit

Permalink
fix: check version
Browse files Browse the repository at this point in the history
  • Loading branch information
gomeslucasm committed Apr 16, 2024
1 parent d48859e commit 82950e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/check-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Check if version changed
id: version-check
run: |
CHANGED=$(git diff --name-only HEAD~1 package.json)
CHANGED=$(git show --name-only --oneline HEAD~1..HEAD package.json)
if [[ -z "$CHANGED" ]]; then
echo "No changes to package.json. Version must be updated before merging."
exit 1
Expand Down

0 comments on commit 82950e3

Please sign in to comment.