Skip to content

Commit

Permalink
[NOID] Solves populated git-diff index bug when no changes have happe…
Browse files Browse the repository at this point in the history
…ned (#553)
  • Loading branch information
ncordon authored Dec 7, 2023
1 parent 0479857 commit 353d39c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/actions/gradle-command-on-pr/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ runs:
- name: Check for modified files
shell: bash
id: git-check
run: echo modified=$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi) >> $GITHUB_OUTPUT
run: |
git update-index --refresh
echo modified=$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi) >> $GITHUB_OUTPUT
- name: Commit to the PR branch
shell: bash
Expand Down

0 comments on commit 353d39c

Please sign in to comment.