remove extra =; use github.run_id

This commit is contained in:
Erica Portnoy 2026-05-12 11:27:55 -07:00
parent 4727d98a4d
commit 369de228bb

View file

@ -27,7 +27,7 @@ jobs:
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2026-03-10" \
"/repos/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID/timing" | jq '.run_duration_ms')
DURATION==$(date -d@"$(("$ms" / 1000))" -u +%H:%M:%S)
DURATION=$(date -d@"$(("$ms" / 1000))" -u +%H:%M:%S)
echo "result=$DURATION" >> "$GITHUB_OUTPUT"
- name: Send to mattermost
uses: mattermost/action-mattermost-notify@b7d118e440bf2749cd18a4a8c88e7092e696257a
@ -51,11 +51,11 @@ jobs:
"short": true
}
],
"pretext": "Run <https://github.com/certbot/actions/runs/$GITHUB_RUN_ID|$GITHUB_RUN_ID> failed",
"pretext": "Run <https://github.com/certbot/actions/runs/${{ github.run_id }}|"${{ github.run_id }}"> failed",
"mrkdwn_in": [
"pretext"
],
"fallback": "Run $GITHUB_RUN_ID failed https://github.com/certbot/actions/runs/$GITHUB_RUN_ID"
"fallback": "Run ${{ github.run_id }} failed https://github.com/certbot/actions/runs/${{ github.run_id }}"
}
]
}