From 7c4f166af42a23737c15b0e0812daa6bfb1b8c87 Mon Sep 17 00:00:00 2001 From: Anthony Brown Date: Wed, 1 Apr 2026 10:02:19 +0000 Subject: [PATCH 1/3] local workflow to update devcontainer --- .../schedule_update_devcontainer.yml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/schedule_update_devcontainer.yml diff --git a/.github/workflows/schedule_update_devcontainer.yml b/.github/workflows/schedule_update_devcontainer.yml new file mode 100644 index 0000000..b672c5b --- /dev/null +++ b/.github/workflows/schedule_update_devcontainer.yml @@ -0,0 +1,27 @@ +name: Update devcontainer version + +on: + workflow_dispatch: + schedule: + - cron: "0 6 * * 2" + +permissions: {} +jobs: + sync-copilot-instructions: + runs-on: ubuntu-22.04 + environment: create_pull_request + permissions: + contents: read + + steps: + - name: Checkout local repository + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd + with: + fetch-depth: 0 + persist-credentials: false + - name: Update devcontainer version + uses: ./action.yml + with: + 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 24f4dd57c7e02280bb46c315a17bb8de4c656d51 Mon Sep 17 00:00:00 2001 From: Anthony Brown Date: Wed, 1 Apr 2026 10:16:00 +0000 Subject: [PATCH 2/3] update permissions --- .github/workflows/schedule_update_devcontainer.yml | 3 ++- README.md | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/schedule_update_devcontainer.yml b/.github/workflows/schedule_update_devcontainer.yml index b672c5b..69622ea 100644 --- a/.github/workflows/schedule_update_devcontainer.yml +++ b/.github/workflows/schedule_update_devcontainer.yml @@ -7,11 +7,12 @@ on: permissions: {} jobs: - sync-copilot-instructions: + update-devcontainer-version: runs-on: ubuntu-22.04 environment: create_pull_request permissions: contents: read + packages: read steps: - name: Checkout local repository diff --git a/README.md b/README.md index cae14fe..f1ec6d5 100644 --- a/README.md +++ b/README.md @@ -36,11 +36,12 @@ on: - cron: '0 6 * * 1' jobs: - sync-copilot-instructions: + update-devcontainer-version: runs-on: ubuntu-22.04 environment: create_pull_request permissions: contents: read + packages: read steps: - name: Update devcontainer version @@ -71,4 +72,4 @@ Before using the action in a repository, ensure that https://github.com/NHSDigit - The action is implemented as a composite action in `action.yml` - It uses pinned action SHAs for its external action dependencies -- The action opens a pull request instead of pushing directly to the base branch \ No newline at end of file +- The action opens a pull request instead of pushing directly to the base branch From ad6bd88138b61bc92cf64e9dac6821c76ccb25a0 Mon Sep 17 00:00:00 2001 From: Anthony Brown Date: Wed, 1 Apr 2026 10:22:54 +0000 Subject: [PATCH 3/3] try without path --- .github/workflows/schedule_update_devcontainer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/schedule_update_devcontainer.yml b/.github/workflows/schedule_update_devcontainer.yml index 69622ea..91d7ad4 100644 --- a/.github/workflows/schedule_update_devcontainer.yml +++ b/.github/workflows/schedule_update_devcontainer.yml @@ -21,7 +21,7 @@ jobs: fetch-depth: 0 persist-credentials: false - name: Update devcontainer version - uses: ./action.yml + uses: ./ with: calling_repo_base_branch: main CREATE_PULL_REQUEST_APP_ID: ${{ secrets.CREATE_PULL_REQUEST_APP_ID }}