Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/schedule_update_devcontainer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Update devcontainer version

on:
workflow_dispatch:
schedule:
- cron: "0 6 * * 2"

permissions: {}
jobs:
update-devcontainer-version:
runs-on: ubuntu-22.04
environment: create_pull_request
permissions:
contents: read
Comment thread
anthony-nhs marked this conversation as resolved.
packages: read

steps:
- name: Checkout local repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
fetch-depth: 0
persist-credentials: false
Comment thread
anthony-nhs marked this conversation as resolved.
- name: Update devcontainer version
uses: ./
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 }}
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
- The action opens a pull request instead of pushing directly to the base branch
Loading