Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,16 +177,16 @@ jobs:
if: failure()
run: unified-doc/scripts/build-drift-alert-context.sh "$GITHUB_REPOSITORY" "$GITHUB_RUN_ID" "$GITHUB_OUTPUT"

# Send drift alert disabled pending fix to openziti/ziti-mattermost-action-py
# (addPushDetails crashes with KeyError: 'forced' on non-push event JSON)
# - name: Send drift alert
# if: failure() && steps.drift-ctx.outputs.has_drift == 'true'
# uses: openziti/ziti-mattermost-action-py@v1
# with:
# zitiId: ${{ secrets.ZITI_MATTERMOST_IDENTITY }}
# webhookUrl: ${{ secrets.ZHOOK_URL_DOC_NOTIFICATIONS }}
# eventJson: ${{ steps.drift-ctx.outputs.event-json }}
# senderUsername: "GitHubZ"
# The schedule guard is load-bearing: the action's push path
# expects payload keys the drift JSON lacks, and crashes without it.
- name: Send drift alert
if: failure() && steps.drift-ctx.outputs.has_drift == 'true' && github.event_name == 'schedule'
uses: openziti/ziti-mattermost-action-py@v1
with:
zitiId: ${{ secrets.ZITI_MATTERMOST_IDENTITY }}
webhookUrl: ${{ secrets.ZHOOK_URL_DOC_NOTIFICATIONS }}
eventJson: ${{ steps.drift-ctx.outputs.event-json }}
senderUsername: "GitHubZ"

# Notify the doc-alerts Mattermost channel only when the nightly scheduled
# run fails. Push/workflow_dispatch runs are watched live by whoever triggered
Expand Down
Loading