Skip to content

Commit dc3a8c5

Browse files
authored
Chore: [AEA-0000] - local workflow to update devcontainer (#5)
## Summary - Routine Change ### Details - local workflow to update devcontainer
1 parent 2a1141a commit dc3a8c5

2 files changed

Lines changed: 31 additions & 2 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Update devcontainer version
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 6 * * 2"
7+
8+
permissions: {}
9+
jobs:
10+
update-devcontainer-version:
11+
runs-on: ubuntu-22.04
12+
environment: create_pull_request
13+
permissions:
14+
contents: read
15+
packages: read
16+
17+
steps:
18+
- name: Checkout local repository
19+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
20+
with:
21+
fetch-depth: 0
22+
persist-credentials: false
23+
- name: Update devcontainer version
24+
uses: ./
25+
with:
26+
calling_repo_base_branch: main
27+
CREATE_PULL_REQUEST_APP_ID: ${{ secrets.CREATE_PULL_REQUEST_APP_ID }}
28+
CREATE_PULL_REQUEST_PEM: ${{ secrets.CREATE_PULL_REQUEST_PEM }}

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,12 @@ on:
3636
- cron: '0 6 * * 1'
3737

3838
jobs:
39-
sync-copilot-instructions:
39+
update-devcontainer-version:
4040
runs-on: ubuntu-22.04
4141
environment: create_pull_request
4242
permissions:
4343
contents: read
44+
packages: read
4445

4546
steps:
4647
- name: Update devcontainer version
@@ -71,4 +72,4 @@ Before using the action in a repository, ensure that https://github.com/NHSDigit
7172

7273
- The action is implemented as a composite action in `action.yml`
7374
- It uses pinned action SHAs for its external action dependencies
74-
- The action opens a pull request instead of pushing directly to the base branch
75+
- The action opens a pull request instead of pushing directly to the base branch

0 commit comments

Comments
 (0)