From 0f3110ebeb00ccf1c289e8e66850da2579b4d5fb Mon Sep 17 00:00:00 2001 From: yoen-velt Date: Thu, 25 Jun 2026 00:30:03 -0400 Subject: [PATCH] ci: avoid duplicate release-note failure issues --- .github/workflows/release-note-to-docs-pr.yml | 6 ++++++ scripts/release-notes/run-release-note-pipeline.sh | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/.github/workflows/release-note-to-docs-pr.yml b/.github/workflows/release-note-to-docs-pr.yml index c8fcd76c4..c3e13e7d4 100644 --- a/.github/workflows/release-note-to-docs-pr.yml +++ b/.github/workflows/release-note-to-docs-pr.yml @@ -167,6 +167,12 @@ jobs: env: GH_TOKEN: ${{ secrets.CROSS_REPO_PAT }} run: | + if [ -f "${RUNNER_TEMP}/release-note-failure-notified" ]; then + echo "Release-note runner already posted failure notification:" + cat "${RUNNER_TEMP}/release-note-failure-notified" + exit 0 + fi + NOTE_PATH="${{ steps.inputs.outputs.note_path || inputs.path || inputs.release_note_url || github.event.client_payload.path || github.event.client_payload.release_note_url }}" NOTE_URL="${{ steps.inputs.outputs.source_note_url || inputs.release_note_url || github.event.client_payload.release_note_url }}" RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" diff --git a/scripts/release-notes/run-release-note-pipeline.sh b/scripts/release-notes/run-release-note-pipeline.sh index 69de5ce73..2d42460ed 100755 --- a/scripts/release-notes/run-release-note-pipeline.sh +++ b/scripts/release-notes/run-release-note-pipeline.sh @@ -23,6 +23,7 @@ DRY_RUN="${PIPELINE_DRY_RUN:-false}" MODEL="${PIPELINE_MODEL:-claude-opus-4-8}" RUN_URL="${RUN_URL:-}" SLACK_WEBHOOK_URL="${SLACK_WEBHOOK_URL:-}" +FAILURE_NOTIFIED_FILE="${FAILURE_NOTIFIED_FILE:-${RUNNER_TEMP:-/tmp}/release-note-failure-notified}" DOCS_ROOT="$PWD" case "$MODE" in @@ -324,6 +325,12 @@ Rerun with release_note_url: $(source_note_url) else create_issue "release-note pipeline failed: ${NOTE_PATH}" "$body" fi + + mkdir -p "$(dirname "$FAILURE_NOTIFIED_FILE")" + { + printf 'notified_at=%s\n' "$(date -u '+%Y-%m-%dT%H:%M:%SZ')" + printf 'stage=%q\n' "$stage" + } > "$FAILURE_NOTIFIED_FILE" } checkout_branch() {