Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
jordangov authored Jul 7, 2024
2 parents f3f2d9f + 625a599 commit 8197b47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/hero-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ jobs:
id: check_sub
run: >-
echo "Checking diff from ${{ github.event.pull_request.head.ref }} on ${{ github.event.pull_request.head.repo.full_name }}...";
SUBMISSION=`(diff target/open-source-heroes.md source/open-source-heroes.md || true) | awk '/\* @${{github.actor}}/{ print $4 }'`;
CHECK=`echo -n "${{github.actor}}-${{ secrets.SALT }}" | openssl dgst -${{ secrets.ALGO }} | awk '/[a-z0-9]+/{ print $2 }'`;
echo "Confirming submission ($SUBMISSION) for ${{github.actor}} equals check...";
SUBMISSION=`(diff target/open-source-heroes.md source/open-source-heroes.md || true) | awk '/\* @${{ github.event.pull_request.user.login }}/{ print $4 }'`;
CHECK=`echo -n "${{ github.event.pull_request.user.login }}-${{ secrets.SALT }}" | openssl dgst -${{ secrets.ALGO }} | awk '/[a-z0-9]+/{ print $2 }'`;
echo "Confirming submission ($SUBMISSION) for ${{ github.event.pull_request.user.login }} equals check...";
if [[ "$SUBMISSION" = "$CHECK" ]]; then
echo "Submissions match"
Expand Down

0 comments on commit 8197b47

Please sign in to comment.