Chore: [AEA-0000] - schedule dev container upgarade#114
Conversation
|
This PR is linked to a ticket in an NHS Digital JIRA Project. Here's a handy link to the ticket: AEA-0000 |
There was a problem hiding this comment.
Pull request overview
Adds a scheduled GitHub Actions workflow to periodically run the existing reusable workflow that updates the devcontainer image version.
Changes:
- Introduces a new scheduled workflow triggered weekly (and manually via
workflow_dispatch). - Invokes the reusable
update-dev-container-version.ymlworkflow with required secrets and base branch.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| workflow_dispatch: | ||
| schedule: | ||
| - cron: "0 18 * * 4" | ||
|
|
||
| jobs: | ||
| update_devcontainer_version: | ||
| uses: ./.github/workflows/update-dev-container-version.yml | ||
| permissions: | ||
| contents: read | ||
| packages: read | ||
| pull-requests: write | ||
| with: | ||
| base_branch: main | ||
| secrets: | ||
| CREATE_PULL_REQUEST_APP_ID: ${{ secrets.CREATE_PULL_REQUEST_APP_ID }} | ||
| CREATE_PULL_REQUEST_PEM: ${{ secrets.CREATE_PULL_REQUEST_PEM }} |
There was a problem hiding this comment.
Indentation in this workflow uses 4/8 spaces (e.g., under on: and jobs:). The rest of the repo’s workflow YAMLs consistently use 2-space indentation (e.g. .github/workflows/pull_request.yml:3-6 and release.yml:3-6). Re-indent this file to 2 spaces to match conventions and reduce the chance of YAML structure mistakes during future edits.
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 18 * * 4" | |
| jobs: | |
| update_devcontainer_version: | |
| uses: ./.github/workflows/update-dev-container-version.yml | |
| permissions: | |
| contents: read | |
| packages: read | |
| pull-requests: write | |
| with: | |
| base_branch: main | |
| secrets: | |
| CREATE_PULL_REQUEST_APP_ID: ${{ secrets.CREATE_PULL_REQUEST_APP_ID }} | |
| CREATE_PULL_REQUEST_PEM: ${{ secrets.CREATE_PULL_REQUEST_PEM }} | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 18 * * 4" | |
| jobs: | |
| update_devcontainer_version: | |
| uses: ./.github/workflows/update-dev-container-version.yml | |
| permissions: | |
| contents: read | |
| packages: read | |
| pull-requests: write | |
| with: | |
| base_branch: main | |
| secrets: | |
| CREATE_PULL_REQUEST_APP_ID: ${{ secrets.CREATE_PULL_REQUEST_APP_ID }} | |
| CREATE_PULL_REQUEST_PEM: ${{ secrets.CREATE_PULL_REQUEST_PEM }} |
|



Summary
Details