Skip to content

Commit

Permalink
ci: Fix head reference
Browse files Browse the repository at this point in the history
  • Loading branch information
IanTapply22 committed May 25, 2024
1 parent 0f967fc commit 7a94bf6
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 @@ -36,7 +36,7 @@ jobs:
- name: Check version change
id: check_version_update
run: |
previous_version=$(git show HEAD^:build.gradle | grep -oP '(?<=version\s+\").*(?=\")')
previous_version=$(git show HEAD:build.gradle | grep -oP '(?<=version\s+\").*(?=\")')
current_version=$(cat build.gradle | grep -oP '(?<=version\s+\").*(?=\")')
if [ "$previous_version" != "$current_version" ]; then
echo "::set-output name=version_changed::true"
Expand Down

0 comments on commit 7a94bf6

Please sign in to comment.