From 52cd8fd5da96a3d47f63762ab12098561b0d7ef6 Mon Sep 17 00:00:00 2001 From: Anthony Brown Date: Mon, 30 Mar 2026 15:46:02 +0000 Subject: [PATCH 1/3] fix it --- .github/workflows/sync_copilot.yml | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/.github/workflows/sync_copilot.yml b/.github/workflows/sync_copilot.yml index 70b9d211..fde466f4 100644 --- a/.github/workflows/sync_copilot.yml +++ b/.github/workflows/sync_copilot.yml @@ -1,18 +1,23 @@ name: Sync Copilot Instructions on: - schedule: - - cron: "0 20 * * 4" workflow_dispatch: - inputs: - common_workflows_ref: - description: "Branch to sync from" - required: false - type: string - default: main + schedule: + - cron: '0 6 * * 1' jobs: - sync-copilot: - uses: NHSDigital/eps-common-workflows/.github/workflows/sync_copilot.yml@f3d19a678a725917a5c59cae4d76db621bb7c9c7 - with: - common_workflows_ref: ${{ inputs.common_workflows_ref }} + sync-copilot-instructions: + runs-on: ubuntu-latest + environment: create_pull_request + permissions: + contents: write + pull-requests: write + + steps: + - name: Sync shared instructions + uses: NHSDigital/eps-copilot-instructions@initial_instructions + with: + common_workflows_ref: main + calling_repo_base_branch: main + CREATE_PULL_REQUEST_APP_ID: ${{ secrets.CREATE_PULL_REQUEST_APP_ID }} + CREATE_PULL_REQUEST_PEM: ${{ secrets.CREATE_PULL_REQUEST_PEM }} From fdb38c867cba678e9ff60f48ff697318d608e4f6 Mon Sep 17 00:00:00 2001 From: Anthony Brown Date: Mon, 30 Mar 2026 16:10:44 +0000 Subject: [PATCH 2/3] use correct tag --- .github/workflows/sync_copilot.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync_copilot.yml b/.github/workflows/sync_copilot.yml index fde466f4..39bb282c 100644 --- a/.github/workflows/sync_copilot.yml +++ b/.github/workflows/sync_copilot.yml @@ -10,12 +10,12 @@ jobs: runs-on: ubuntu-latest environment: create_pull_request permissions: - contents: write + contents: read pull-requests: write steps: - name: Sync shared instructions - uses: NHSDigital/eps-copilot-instructions@initial_instructions + uses: NHSDigital/eps-copilot-instructions@08241b83de78b996e7796806be8435314e9f0b7a with: common_workflows_ref: main calling_repo_base_branch: main From 432f1b27cf7d25b1634cedb0874315d776134f8b Mon Sep 17 00:00:00 2001 From: Anthony Brown Date: Mon, 30 Mar 2026 16:18:02 +0000 Subject: [PATCH 3/3] use correct tag --- .github/workflows/sync_copilot.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/sync_copilot.yml b/.github/workflows/sync_copilot.yml index 39bb282c..6a58e7e8 100644 --- a/.github/workflows/sync_copilot.yml +++ b/.github/workflows/sync_copilot.yml @@ -7,11 +7,10 @@ on: jobs: sync-copilot-instructions: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 environment: create_pull_request permissions: contents: read - pull-requests: write steps: - name: Sync shared instructions