Skip to content

Commit

Permalink
trying to resolve the checksum parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
jordangov committed Jul 2, 2024
1 parent e22807d commit 96120f2
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 @@ -20,7 +20,7 @@ jobs:
run: >-
git fetch origin main;
SUBMISSION=`git diff origin/main..HEAD open-source-heros.md | awk '/\* @${{github.actor}}/{ print $3 }'`;
CHECKSUM=`echo -n "${{github.actor}}-${{secrets.SALT}}" | openssl dgst -${{secrets.ALGO}}` | awk '/[a-z0-9]+/{ print $0 }';
CHECKSUM=`echo -n "${{github.actor}}-${{secrets.SALT}}" | openssl dgst -${{secrets.ALGO}} -out c.txt` | cat c.txt;
echo "Confirming submission ($SUBMISSION) equals checksum ($CHECKSUM)...";
if [[ "$SUBMISSION" = "$CHECKSUM" ]]; then
echo "You are an open source hero!";
Expand Down

0 comments on commit 96120f2

Please sign in to comment.