From 2d1be1f5e38f6ede86960f978da90e96aa6ccb86 Mon Sep 17 00:00:00 2001 From: Jordan Kasper <30059011+jordangov@users.noreply.github.com> Date: Sun, 7 Jul 2024 14:13:08 -0400 Subject: [PATCH] debugging --- .github/workflows/hero-check.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/hero-check.yml b/.github/workflows/hero-check.yml index d48a998..362b1d1 100644 --- a/.github/workflows/hero-check.yml +++ b/.github/workflows/hero-check.yml @@ -28,9 +28,16 @@ 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"