diff --git a/.github/workflows/main-broken.yml b/.github/workflows/main-broken.yml index 93f564302f..6b8961a710 100644 --- a/.github/workflows/main-broken.yml +++ b/.github/workflows/main-broken.yml @@ -82,6 +82,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 permissions: + contents: read issues: write actions: read pull-requests: read @@ -92,6 +93,19 @@ jobs: RUN_ID: ${{ github.event.workflow_run.id || inputs.run_id }} DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run }} steps: + # The pm-dispatch-queue action is loaded from this checkout rather + # than as `developing-today/code/.github/actions/pm-dispatch-queue@main`. + # The remote form made the runner download the whole repo as an + # action archive during "Set up job", which failed on every run with + # `Could not find file .../_staging/code-/archive` and broke the + # watcher entirely (issue #4867, runs 41627469155 / 41629527441 / + # 41665798024). A local action path is resolved from the workspace + # and needs no action-repository download. + - name: Check out the watcher action + uses: actions/checkout@v7 + with: + persist-credentials: false + - name: Identify breakage id: identify run: | @@ -187,7 +201,7 @@ jobs: - name: Queue the breakage via pm-dispatch (creates the issue) id: dispatch-create if: steps.identify.outputs.action == 'create' - uses: developing-today/code/.github/actions/pm-dispatch-queue@main + uses: ./.github/actions/pm-dispatch-queue with: title: ${{ steps.identify.outputs.title }} prompt: ${{ steps.identify.outputs.prompt }} @@ -249,7 +263,7 @@ jobs: - name: Queue a fresh fix task via pm-dispatch (existing issue) id: dispatch-append if: steps.identify.outputs.action == 'append' - uses: developing-today/code/.github/actions/pm-dispatch-queue@main + uses: ./.github/actions/pm-dispatch-queue with: title: ${{ steps.identify.outputs.title }} prompt: ${{ steps.identify.outputs.prompt }}