diff --git a/.github/workflows/pages.yaml b/.github/workflows/pages.yaml index de10642..69c366d 100644 --- a/.github/workflows/pages.yaml +++ b/.github/workflows/pages.yaml @@ -26,6 +26,7 @@ jobs: uses: actions/checkout@v4 with: ref: data + fetch-depth: 0 - name: Configure Pages uses: actions/configure-pages@v4 @@ -66,6 +67,13 @@ jobs: node tools/build_email_alert.js echo "should_send=$(cat reports/alert_should_send.txt | tr -d '\r\n')" >> "$GITHUB_OUTPUT" + - name: Debug alert outputs + shell: bash + run: | + set -euo pipefail + echo "alert_should_send=$(cat reports/alert_should_send.txt || true)" + echo "subject=$(cat reports/alert_subject.txt || true)" + - name: Send email alert if: steps.alert.outputs.should_send == '1' uses: dawidd6/action-send-mail@v7