change name and add prints to duration calculation

This commit is contained in:
Erica Portnoy 2026-05-12 11:34:10 -07:00
parent 2148bb71de
commit 543aef926b

View file

@ -23,11 +23,13 @@ jobs:
shell: bash
id: duration
run: |-
ms=$(gh api \
MILLIS=$(gh api \
-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)
echo "ms = $MILLIS"
DURATION=$(date -d@"$(("$MILLIS" / 1000))" -u +%H:%M:%S)
echo "result = $DURATION"
echo "result=$DURATION" >> "$GITHUB_OUTPUT"
- name: Send to mattermost
uses: mattermost/action-mattermost-notify@b7d118e440bf2749cd18a4a8c88e7092e696257a