From ddf98f5f98b786f6d57a424825692923ecf4f57d Mon Sep 17 00:00:00 2001 From: repo-worker-code-g Date: Fri, 6 Nov 2026 22:50:29 -0600 Subject: [PATCH] fix(pm-dispatch): load jules and pm-scheduled actions from local checkouts (#5332) --- .github/workflows/jules.yml | 39 +++++++++++++++++++++++++----- .github/workflows/pm-scheduled.yml | 6 ++--- 2 files changed, 36 insertions(+), 9 deletions(-) diff --git a/.github/workflows/jules.yml b/.github/workflows/jules.yml index 6955859b87..4077fea5fa 100644 --- a/.github/workflows/jules.yml +++ b/.github/workflows/jules.yml @@ -4,9 +4,9 @@ name: pm-dispatch # laptop (via pm-dispatch) from any GitHub event. This workflow was # previously backed by the Jules service; it now uses the reusable # pm-dispatch starter action -# (developing-today/code/.github/actions/pm-dispatch-start@main), which -# creates the tracking issue, enqueues the task, and launches the -# session. Each job is independently disable-able by deleting it. +# (./.github/actions/pm-dispatch-start, loaded from a checkout of +# this repo), which creates the tracking issue, enqueues the task, +# and launches the session. Each job is independently disable-able by deleting it. # # No repository secret is required: each job grants # `permissions: id-token: write`, and the starter action mints a GitHub @@ -56,9 +56,18 @@ jobs: issues: read id-token: write steps: + # Loaded from this checkout, not the remote @main form: the remote + # form makes the runner download the whole repo as an action archive, + # which fails with Could not find file .../_staging/code-/archive + # (issue #5332, #4742 defect class). + - name: Check out the pm-dispatch actions + uses: actions/checkout@v7 + with: + persist-credentials: false + - name: Dispatch weekly cleanup via pm-dispatch id: dispatch - uses: developing-today/code/.github/actions/pm-dispatch-start@main + uses: ./.github/actions/pm-dispatch-start with: title: "Weekly housekeeping cleanup" prompt: >- @@ -89,9 +98,18 @@ jobs: issues: read id-token: write steps: + # Loaded from this checkout, not the remote @main form: the remote + # form makes the runner download the whole repo as an action archive, + # which fails with Could not find file .../_staging/code-/archive + # (issue #5332, #4742 defect class). + - name: Check out the pm-dispatch actions + uses: actions/checkout@v7 + with: + persist-credentials: false + - name: Dispatch issue fix via pm-dispatch id: dispatch - uses: developing-today/code/.github/actions/pm-dispatch-start@main + uses: ./.github/actions/pm-dispatch-start with: title: ${{ github.event.issue.title }} prompt: >- @@ -123,9 +141,18 @@ jobs: issues: read id-token: write steps: + # Loaded from this checkout, not the remote @main form: the remote + # form makes the runner download the whole repo as an action archive, + # which fails with Could not find file .../_staging/code-/archive + # (issue #5332, #4742 defect class). + - name: Check out the pm-dispatch actions + uses: actions/checkout@v7 + with: + persist-credentials: false + - name: Dispatch manual prompt via pm-dispatch id: dispatch - uses: developing-today/code/.github/actions/pm-dispatch-start@main + uses: ./.github/actions/pm-dispatch-start with: title: "Manual pm-dispatch run" prompt: ${{ inputs.prompt }} diff --git a/.github/workflows/pm-scheduled.yml b/.github/workflows/pm-scheduled.yml index 5da034725c..a15163951a 100644 --- a/.github/workflows/pm-scheduled.yml +++ b/.github/workflows/pm-scheduled.yml @@ -175,7 +175,7 @@ jobs: - name: Dispatch bolt id: bolt if: steps.resolve.outputs.has_bolt == 'true' - uses: developing-today/code/.github/actions/pm-dispatch-task@main + uses: ./.pm-central/.github/actions/pm-dispatch-task with: task: bolt repo: ${{ steps.resolve.outputs.repo }} @@ -183,7 +183,7 @@ jobs: - name: Dispatch palette id: palette if: steps.resolve.outputs.has_palette == 'true' - uses: developing-today/code/.github/actions/pm-dispatch-task@main + uses: ./.pm-central/.github/actions/pm-dispatch-task with: task: palette repo: ${{ steps.resolve.outputs.repo }} @@ -191,7 +191,7 @@ jobs: - name: Dispatch suggestions id: suggestions if: steps.resolve.outputs.has_suggestions == 'true' - uses: developing-today/code/.github/actions/pm-dispatch-task@main + uses: ./.pm-central/.github/actions/pm-dispatch-task with: task: suggestions repo: ${{ steps.resolve.outputs.repo }}