diff --git a/.github/workflows/schedule_update_devcontainer.yml b/.github/workflows/schedule_update_devcontainer.yml new file mode 100644 index 0000000..91d7ad4 --- /dev/null +++ b/.github/workflows/schedule_update_devcontainer.yml @@ -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 + packages: read + + steps: + - name: Checkout local repository + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd + with: + fetch-depth: 0 + persist-credentials: false + - 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 }} 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