Skip to content

Commit

Permalink
Merge branch 'main' into add-jordan
Browse files Browse the repository at this point in the history
  • Loading branch information
jordangov authored Jul 15, 2024
2 parents f9b9718 + bfd2ee1 commit cfe04ff
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/check-submission.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@ jobs:
- name: Check Submission
id: check_submission
run: >-
HASH_INPUT="${{ github.event.pull_request.user.login }}-${{ secrets.SALT1 }}-${{ secrets.SALT2 }}";
ALGO="${{ secrets.ALGO }}"
echo "Checking diff from ${{ github.event.pull_request.head.ref }} on ${{ github.event.pull_request.head.repo.full_name }}...";
HASH_INPUT="${{ github.event.pull_request.user.login }}-${{ secrets.SALT1 }}-${{ secrets.SALT2 }}"; echo "Checking diff from ${{ github.event.pull_request.head.ref }} on ${{ github.event.pull_request.head.repo.full_name }}...";
SUBMISSION=`(diff target/plank-holders.md source/plank-holders.md || true) | awk '/\* @${{ github.event.pull_request.user.login }}/{ print $4 }'`;
CHECK=`echo -n "$HASH_INPUT" | openssl dgst -$ALGO | awk '/[a-z0-9]+/{ print $2 }'`;
RAW=`echo -n "$HASH_INPUT" | openssl dgst -$ALGO`
CHECK=`echo -n "$HASH_INPUT" | openssl dgst -${{ secrets.ALGO }} | awk '/[a-z0-9]+/{ print $2 }'`;
RAW=`echo -n "$HASH_INPUT" | openssl dgst -${{ secrets.ALGO }}`
if [[ "$SUBMISSION" =~ ^[a-zA-Z0-9]+$ ]]; then
echo "Confirming submission ($SUBMISSION) for ${{ github.event.pull_request.user.login }} equals check...";
Expand Down

0 comments on commit cfe04ff

Please sign in to comment.