Skip to content

Commit

Permalink
go to head before doiing diff
Browse files Browse the repository at this point in the history
  • Loading branch information
jordangov committed Jul 2, 2024
1 parent 5ca6404 commit 840e653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/hero-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fetch-depth: 0
- name: Run script
run: |
SUBMISSION=`git diff main | awk '/${{github.actor}}/{ print $3 }'`
SUBMISSION=`git checkout HEAD > /dev/null && git diff main | awk '/\* @${{github.actor}}/{ print $3 }'`
CHECKSUM=`echo -n "${{github.actor}}-${{secrets.SALT}}" | openssl dgst -${{secrets.ALGO}}`
echo "Confirming submission: $SUBMISSION"
echo " equals checksum: $CHECKSUM"

0 comments on commit 840e653

Please sign in to comment.