From fdb8094b913a62abd4f5ac1dba65674a215eac6f Mon Sep 17 00:00:00 2001 From: hatayama Date: Wed, 22 Jul 2026 21:48:08 +0900 Subject: [PATCH] Add release approval pending notify workflow to the default branch schedule and workflow_run triggers only fire from workflow files that live on the default branch (main), regardless of which branch the implementation targets. This file is byte-identical to the one on v3-beta (see PR #1950), which is where the reconcile command (cli/release-automation/cmd/notify-pending-release-approvals) actually lives; its checkout step pins ref: v3-beta so the scheduled run finds it. Companion to v3-beta PR #1950. --- .../release-approval-pending-notify.yml | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/release-approval-pending-notify.yml diff --git a/.github/workflows/release-approval-pending-notify.yml b/.github/workflows/release-approval-pending-notify.yml new file mode 100644 index 000000000..2f64b07eb --- /dev/null +++ b/.github/workflows/release-approval-pending-notify.yml @@ -0,0 +1,47 @@ +name: Release Approval Pending Notify + +on: + schedule: + - cron: "*/15 * * * *" + workflow_dispatch: + workflow_run: + workflows: + - native-cli-publish + - dispatcher-publish + types: + - completed + +permissions: + actions: read + issues: write + contents: read + +concurrency: + group: release-approval-pending-notify + cancel-in-progress: false + +jobs: + notify: + runs-on: ubuntu-latest + + steps: + # schedule/workflow_run only fire from workflow files on the default branch (main), which + # has no cli/ directory; the reconcile implementation lives on v3-beta, so this checkout + # must pin ref explicitly instead of using the triggering event's ref. + - name: Checkout repository + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd + with: + ref: v3-beta + + - name: Setup Go + uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c + with: + go-version-file: cli/.go-version + cache: false + + - name: Reconcile pending release approval issue + working-directory: cli/release-automation + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_REPOSITORY: ${{ github.repository }} + run: go run ./cmd/notify-pending-release-approvals