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 7cd3a96 commit f0c5da6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/hero-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ 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}} -out c.txt && cat c.txt;`
echo -n "${{github.actor}}-${{secrets.SALT}}" | openssl dgst -${{secrets.ALGO}} -out c.txt;
cat c.txt;
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 f0c5da6

Please sign in to comment.