mirror of
https://github.com/samsonjs/spirit-tracker.git
synced 2026-03-25 09:25:51 +00:00
ci: Fixes to workflow
This commit is contained in:
parent
3ba5658149
commit
47fb96835c
1 changed files with 8 additions and 0 deletions
8
.github/workflows/pages.yaml
vendored
8
.github/workflows/pages.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue