Skip to content

Commit

Permalink
debugging pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jordangov authored Jul 7, 2024
1 parent 17dcac5 commit c7a7b20
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/hero-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,15 @@ jobs:
- name: Check Submission
id: check_sub
run: >-
pwd;
ls -l;
cat source/open-source-heroes.md;
cat target/open-source-heroes.md;
diff target/open-source-heroes.md source/open-source-heroes.md || true;
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 ($CHECK) from SALT ($SALT) and ALGO ($ALGO)...";
echo "Confirming submission ($SUBMISSION) for ${{github.actor}} equals check ($CHECK)...";
if [[ "$SUBMISSION" = "$CHECK" ]]; then
echo "Submissions match"
Expand Down

0 comments on commit c7a7b20

Please sign in to comment.