From 0025c44b37d1532abb2e97147bd37178cf1785ab Mon Sep 17 00:00:00 2001 From: Anthony Brown Date: Mon, 9 Feb 2026 10:23:35 +0000 Subject: [PATCH 1/5] sync copilot --- .github/workflows/release.yml | 210 +--------------------------------- 1 file changed, 2 insertions(+), 208 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f53b40b1..c6e46254 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,213 +3,7 @@ name: deploy to environments on: workflow_dispatch: -env: - BRANCH_NAME: ${{ github.event.ref.BRANCH_NAME }} - jobs: - get_asdf_version: - runs-on: ubuntu-22.04 - outputs: - asdf_version: ${{ steps.asdf-version.outputs.version }} - tag_format: ${{ steps.load-config.outputs.TAG_FORMAT }} - steps: - - name: Checkout code - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd - - - name: Get asdf version - id: asdf-version - run: echo "version=$(awk '!/^#/ && NF {print $1; exit}' .tool-versions.asdf)" >> "$GITHUB_OUTPUT" - - name: Load config value - id: load-config - run: | - TAG_FORMAT=$(yq '.TAG_FORMAT' .github/config/settings.yml) - echo "TAG_FORMAT=$TAG_FORMAT" >> "$GITHUB_OUTPUT" - - quality_checks: - uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks.yml@5ccebbf821beef2de6abdce9e392b3cbeb4999e3 - needs: [get_asdf_version] - with: - asdfVersion: ${{ needs.get_asdf_version.outputs.asdf_version }} - secrets: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - - get_commit_id: - runs-on: ubuntu-22.04 - outputs: - commit_id: ${{ steps.commit_id.outputs.commit_id }} - steps: - - name: Get Commit ID - id: commit_id - run: | - echo "commit_id=${{ github.sha }}" >> "$GITHUB_OUTPUT" - - tag_release: - needs: [quality_checks, get_commit_id, get_asdf_version] - uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release.yml@5ccebbf821beef2de6abdce9e392b3cbeb4999e3 - with: - dry_run: false - asdfVersion: ${{ needs.get_asdf_version.outputs.asdf_version }} - branch_name: main - tag_format: ${{ needs.get_asdf_version.outputs.tag_format }} - secrets: inherit - - package_code: - needs: [tag_release, get_commit_id] - uses: ./.github/workflows/cdk_package_code.yml - with: - VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}} - COMMIT_ID: ${{needs.get_commit_id.outputs.commit_id}} - - release_dev: - needs: [tag_release, package_code, get_commit_id] - uses: ./.github/workflows/cdk_release_code.yml - with: - TARGET_ENVIRONMENT: dev - VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}} - COMMIT_ID: ${{needs.get_commit_id.outputs.commit_id}} - LOG_RETENTION_IN_DAYS: 30 - DEPLOY_CHANGE: true - FORWARD_CSOC_LOGS: false - secrets: - CDK_PULL_IMAGE_ROLE: ${{ secrets.DEV_CDK_PULL_IMAGE_ROLE }} - CLOUD_FORMATION_DEPLOY_ROLE: ${{ secrets.DEV_CLOUD_FORMATION_DEPLOY_ROLE }} - - create_release_notes: - needs: [tag_release, package_code, get_commit_id, release_dev] - uses: ./.github/workflows/create_release_notes.yml - with: - VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}} - CREATE_INT_RELEASE_NOTES: true - CREATE_INT_RC_RELEASE_NOTES: false - CREATE_PROD_RELEASE_NOTES: true - MARK_JIRA_RELEASED: false - secrets: - DEV_CLOUD_FORMATION_EXECUTE_LAMBDA_ROLE: ${{ secrets.DEV_CLOUD_FORMATION_EXECUTE_LAMBDA_ROLE }} - DEV_CLOUD_FORMATION_CHECK_VERSION_ROLE: ${{ secrets.DEV_CLOUD_FORMATION_CHECK_VERSION_ROLE }} - INT_CLOUD_FORMATION_CHECK_VERSION_ROLE: ${{ secrets.INT_CLOUD_FORMATION_CHECK_VERSION_ROLE }} - PROD_CLOUD_FORMATION_CHECK_VERSION_ROLE: ${{ secrets.PROD_CLOUD_FORMATION_CHECK_VERSION_ROLE }} - - release_ref: - needs: [tag_release, package_code, get_commit_id, release_dev] - uses: ./.github/workflows/cdk_release_code.yml - with: - TARGET_ENVIRONMENT: ref - VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}} - COMMIT_ID: ${{needs.get_commit_id.outputs.commit_id}} - LOG_RETENTION_IN_DAYS: 30 - DEPLOY_CHANGE: true - FORWARD_CSOC_LOGS: false - secrets: - CDK_PULL_IMAGE_ROLE: ${{ secrets.REF_CDK_PULL_IMAGE_ROLE }} - CLOUD_FORMATION_DEPLOY_ROLE: ${{ secrets.REF_CLOUD_FORMATION_DEPLOY_ROLE }} - - release_qa: - needs: [tag_release, package_code, get_commit_id, release_dev] - uses: ./.github/workflows/cdk_release_code.yml - with: - TARGET_ENVIRONMENT: qa - VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}} - COMMIT_ID: ${{needs.get_commit_id.outputs.commit_id}} - LOG_RETENTION_IN_DAYS: 30 - DEPLOY_CHANGE: true - FORWARD_CSOC_LOGS: false - secrets: - CDK_PULL_IMAGE_ROLE: ${{ secrets.QA_CDK_PULL_IMAGE_ROLE }} - CLOUD_FORMATION_DEPLOY_ROLE: ${{ secrets.QA_CLOUD_FORMATION_DEPLOY_ROLE }} - - create_rc_release_notes: - needs: [tag_release, package_code, get_commit_id, release_dev, release_qa] - uses: ./.github/workflows/create_release_notes.yml - with: - VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}} - CREATE_INT_RELEASE_NOTES: false - CREATE_INT_RC_RELEASE_NOTES: true - CREATE_PROD_RELEASE_NOTES: false - MARK_JIRA_RELEASED: false - secrets: - DEV_CLOUD_FORMATION_EXECUTE_LAMBDA_ROLE: ${{ secrets.DEV_CLOUD_FORMATION_EXECUTE_LAMBDA_ROLE }} - DEV_CLOUD_FORMATION_CHECK_VERSION_ROLE: ${{ secrets.DEV_CLOUD_FORMATION_CHECK_VERSION_ROLE }} - INT_CLOUD_FORMATION_CHECK_VERSION_ROLE: ${{ secrets.INT_CLOUD_FORMATION_CHECK_VERSION_ROLE }} - PROD_CLOUD_FORMATION_CHECK_VERSION_ROLE: ${{ secrets.PROD_CLOUD_FORMATION_CHECK_VERSION_ROLE }} - - release_int: - needs: - [ - tag_release, - package_code, - get_commit_id, - release_qa, - create_rc_release_notes, - ] - uses: ./.github/workflows/cdk_release_code.yml - with: - TARGET_ENVIRONMENT: int - VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}} - COMMIT_ID: ${{needs.get_commit_id.outputs.commit_id}} - LOG_RETENTION_IN_DAYS: 30 - DEPLOY_CHANGE: true - FORWARD_CSOC_LOGS: false - secrets: - CDK_PULL_IMAGE_ROLE: ${{ secrets.INT_CDK_PULL_IMAGE_ROLE }} - CLOUD_FORMATION_DEPLOY_ROLE: ${{ secrets.INT_CLOUD_FORMATION_DEPLOY_ROLE }} - - create_release_notes_post_int: - needs: - [ - tag_release, - package_code, - get_commit_id, - release_dev, - release_qa, - release_int, - ] - uses: ./.github/workflows/create_release_notes.yml - with: - VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}} - CREATE_INT_RELEASE_NOTES: true - CREATE_INT_RC_RELEASE_NOTES: false - CREATE_PROD_RELEASE_NOTES: false - MARK_JIRA_RELEASED: false - secrets: - DEV_CLOUD_FORMATION_EXECUTE_LAMBDA_ROLE: ${{ secrets.DEV_CLOUD_FORMATION_EXECUTE_LAMBDA_ROLE }} - DEV_CLOUD_FORMATION_CHECK_VERSION_ROLE: ${{ secrets.DEV_CLOUD_FORMATION_CHECK_VERSION_ROLE }} - INT_CLOUD_FORMATION_CHECK_VERSION_ROLE: ${{ secrets.INT_CLOUD_FORMATION_CHECK_VERSION_ROLE }} - PROD_CLOUD_FORMATION_CHECK_VERSION_ROLE: ${{ secrets.PROD_CLOUD_FORMATION_CHECK_VERSION_ROLE }} - - release_prod: - needs: [tag_release, package_code, get_commit_id, release_int] - uses: ./.github/workflows/cdk_release_code.yml - with: - TARGET_ENVIRONMENT: prod - VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}} - COMMIT_ID: ${{needs.get_commit_id.outputs.commit_id}} - LOG_RETENTION_IN_DAYS: 30 - DEPLOY_CHANGE: true - FORWARD_CSOC_LOGS: true - secrets: - CDK_PULL_IMAGE_ROLE: ${{ secrets.PROD_CDK_PULL_IMAGE_ROLE }} - CLOUD_FORMATION_DEPLOY_ROLE: ${{ secrets.PROD_CLOUD_FORMATION_DEPLOY_ROLE }} + sync_copilot: + uses: NHSDigital/eps-common-workflows/.github/workflows/sync-copilot.yml@copilot - create_release_notes_post_prod: - needs: - [ - tag_release, - package_code, - get_commit_id, - release_dev, - release_qa, - release_int, - release_prod, - ] - uses: ./.github/workflows/create_release_notes.yml - with: - VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}} - CREATE_INT_RELEASE_NOTES: false - CREATE_INT_RC_RELEASE_NOTES: false - CREATE_PROD_RELEASE_NOTES: true - MARK_JIRA_RELEASED: true - secrets: - DEV_CLOUD_FORMATION_EXECUTE_LAMBDA_ROLE: ${{ secrets.DEV_CLOUD_FORMATION_EXECUTE_LAMBDA_ROLE }} - DEV_CLOUD_FORMATION_CHECK_VERSION_ROLE: ${{ secrets.DEV_CLOUD_FORMATION_CHECK_VERSION_ROLE }} - INT_CLOUD_FORMATION_CHECK_VERSION_ROLE: ${{ secrets.INT_CLOUD_FORMATION_CHECK_VERSION_ROLE }} - PROD_CLOUD_FORMATION_CHECK_VERSION_ROLE: ${{ secrets.PROD_CLOUD_FORMATION_CHECK_VERSION_ROLE }} From 7533d65d1550f53f4b76f76b9094443aee102c4b Mon Sep 17 00:00:00 2001 From: Anthony Brown Date: Mon, 9 Feb 2026 10:29:07 +0000 Subject: [PATCH 2/5] add permissions --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c6e46254..b38dea0e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,4 +6,6 @@ on: jobs: sync_copilot: uses: NHSDigital/eps-common-workflows/.github/workflows/sync-copilot.yml@copilot - + permissions: + contents: write + pull-requests: write From 24be570ec8bf8c34be9eed1c21f4399d24afebb6 Mon Sep 17 00:00:00 2001 From: Anthony Brown Date: Mon, 9 Feb 2026 10:37:26 +0000 Subject: [PATCH 3/5] temp use pr_title_check --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b38dea0e..d06c18e4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ on: jobs: sync_copilot: - uses: NHSDigital/eps-common-workflows/.github/workflows/sync-copilot.yml@copilot + uses: NHSDigital/eps-common-workflows/.github/workflows/pr_title_check.yml@copilot permissions: contents: write pull-requests: write From 7265725a0c1ab47450935dcea5e4f29de936bfbd Mon Sep 17 00:00:00 2001 From: Anthony Brown Date: Mon, 9 Feb 2026 10:43:07 +0000 Subject: [PATCH 4/5] trigger build From bbe8eecd855c4aa3d52459ec19b6fc896894495c Mon Sep 17 00:00:00 2001 From: Anthony Brown Date: Mon, 9 Feb 2026 11:03:20 +0000 Subject: [PATCH 5/5] use correct workflow --- .github/workflows/release.yml | 214 ++++++++++++++++++++++++++++- .github/workflows/sync_copilot.yml | 13 ++ 2 files changed, 222 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/sync_copilot.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d06c18e4..f53b40b1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,9 +3,213 @@ name: deploy to environments on: workflow_dispatch: +env: + BRANCH_NAME: ${{ github.event.ref.BRANCH_NAME }} + jobs: - sync_copilot: - uses: NHSDigital/eps-common-workflows/.github/workflows/pr_title_check.yml@copilot - permissions: - contents: write - pull-requests: write + get_asdf_version: + runs-on: ubuntu-22.04 + outputs: + asdf_version: ${{ steps.asdf-version.outputs.version }} + tag_format: ${{ steps.load-config.outputs.TAG_FORMAT }} + steps: + - name: Checkout code + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd + + - name: Get asdf version + id: asdf-version + run: echo "version=$(awk '!/^#/ && NF {print $1; exit}' .tool-versions.asdf)" >> "$GITHUB_OUTPUT" + - name: Load config value + id: load-config + run: | + TAG_FORMAT=$(yq '.TAG_FORMAT' .github/config/settings.yml) + echo "TAG_FORMAT=$TAG_FORMAT" >> "$GITHUB_OUTPUT" + + quality_checks: + uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks.yml@5ccebbf821beef2de6abdce9e392b3cbeb4999e3 + needs: [get_asdf_version] + with: + asdfVersion: ${{ needs.get_asdf_version.outputs.asdf_version }} + secrets: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + + get_commit_id: + runs-on: ubuntu-22.04 + outputs: + commit_id: ${{ steps.commit_id.outputs.commit_id }} + steps: + - name: Get Commit ID + id: commit_id + run: | + echo "commit_id=${{ github.sha }}" >> "$GITHUB_OUTPUT" + + tag_release: + needs: [quality_checks, get_commit_id, get_asdf_version] + uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release.yml@5ccebbf821beef2de6abdce9e392b3cbeb4999e3 + with: + dry_run: false + asdfVersion: ${{ needs.get_asdf_version.outputs.asdf_version }} + branch_name: main + tag_format: ${{ needs.get_asdf_version.outputs.tag_format }} + secrets: inherit + + package_code: + needs: [tag_release, get_commit_id] + uses: ./.github/workflows/cdk_package_code.yml + with: + VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}} + COMMIT_ID: ${{needs.get_commit_id.outputs.commit_id}} + + release_dev: + needs: [tag_release, package_code, get_commit_id] + uses: ./.github/workflows/cdk_release_code.yml + with: + TARGET_ENVIRONMENT: dev + VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}} + COMMIT_ID: ${{needs.get_commit_id.outputs.commit_id}} + LOG_RETENTION_IN_DAYS: 30 + DEPLOY_CHANGE: true + FORWARD_CSOC_LOGS: false + secrets: + CDK_PULL_IMAGE_ROLE: ${{ secrets.DEV_CDK_PULL_IMAGE_ROLE }} + CLOUD_FORMATION_DEPLOY_ROLE: ${{ secrets.DEV_CLOUD_FORMATION_DEPLOY_ROLE }} + + create_release_notes: + needs: [tag_release, package_code, get_commit_id, release_dev] + uses: ./.github/workflows/create_release_notes.yml + with: + VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}} + CREATE_INT_RELEASE_NOTES: true + CREATE_INT_RC_RELEASE_NOTES: false + CREATE_PROD_RELEASE_NOTES: true + MARK_JIRA_RELEASED: false + secrets: + DEV_CLOUD_FORMATION_EXECUTE_LAMBDA_ROLE: ${{ secrets.DEV_CLOUD_FORMATION_EXECUTE_LAMBDA_ROLE }} + DEV_CLOUD_FORMATION_CHECK_VERSION_ROLE: ${{ secrets.DEV_CLOUD_FORMATION_CHECK_VERSION_ROLE }} + INT_CLOUD_FORMATION_CHECK_VERSION_ROLE: ${{ secrets.INT_CLOUD_FORMATION_CHECK_VERSION_ROLE }} + PROD_CLOUD_FORMATION_CHECK_VERSION_ROLE: ${{ secrets.PROD_CLOUD_FORMATION_CHECK_VERSION_ROLE }} + + release_ref: + needs: [tag_release, package_code, get_commit_id, release_dev] + uses: ./.github/workflows/cdk_release_code.yml + with: + TARGET_ENVIRONMENT: ref + VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}} + COMMIT_ID: ${{needs.get_commit_id.outputs.commit_id}} + LOG_RETENTION_IN_DAYS: 30 + DEPLOY_CHANGE: true + FORWARD_CSOC_LOGS: false + secrets: + CDK_PULL_IMAGE_ROLE: ${{ secrets.REF_CDK_PULL_IMAGE_ROLE }} + CLOUD_FORMATION_DEPLOY_ROLE: ${{ secrets.REF_CLOUD_FORMATION_DEPLOY_ROLE }} + + release_qa: + needs: [tag_release, package_code, get_commit_id, release_dev] + uses: ./.github/workflows/cdk_release_code.yml + with: + TARGET_ENVIRONMENT: qa + VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}} + COMMIT_ID: ${{needs.get_commit_id.outputs.commit_id}} + LOG_RETENTION_IN_DAYS: 30 + DEPLOY_CHANGE: true + FORWARD_CSOC_LOGS: false + secrets: + CDK_PULL_IMAGE_ROLE: ${{ secrets.QA_CDK_PULL_IMAGE_ROLE }} + CLOUD_FORMATION_DEPLOY_ROLE: ${{ secrets.QA_CLOUD_FORMATION_DEPLOY_ROLE }} + + create_rc_release_notes: + needs: [tag_release, package_code, get_commit_id, release_dev, release_qa] + uses: ./.github/workflows/create_release_notes.yml + with: + VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}} + CREATE_INT_RELEASE_NOTES: false + CREATE_INT_RC_RELEASE_NOTES: true + CREATE_PROD_RELEASE_NOTES: false + MARK_JIRA_RELEASED: false + secrets: + DEV_CLOUD_FORMATION_EXECUTE_LAMBDA_ROLE: ${{ secrets.DEV_CLOUD_FORMATION_EXECUTE_LAMBDA_ROLE }} + DEV_CLOUD_FORMATION_CHECK_VERSION_ROLE: ${{ secrets.DEV_CLOUD_FORMATION_CHECK_VERSION_ROLE }} + INT_CLOUD_FORMATION_CHECK_VERSION_ROLE: ${{ secrets.INT_CLOUD_FORMATION_CHECK_VERSION_ROLE }} + PROD_CLOUD_FORMATION_CHECK_VERSION_ROLE: ${{ secrets.PROD_CLOUD_FORMATION_CHECK_VERSION_ROLE }} + + release_int: + needs: + [ + tag_release, + package_code, + get_commit_id, + release_qa, + create_rc_release_notes, + ] + uses: ./.github/workflows/cdk_release_code.yml + with: + TARGET_ENVIRONMENT: int + VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}} + COMMIT_ID: ${{needs.get_commit_id.outputs.commit_id}} + LOG_RETENTION_IN_DAYS: 30 + DEPLOY_CHANGE: true + FORWARD_CSOC_LOGS: false + secrets: + CDK_PULL_IMAGE_ROLE: ${{ secrets.INT_CDK_PULL_IMAGE_ROLE }} + CLOUD_FORMATION_DEPLOY_ROLE: ${{ secrets.INT_CLOUD_FORMATION_DEPLOY_ROLE }} + + create_release_notes_post_int: + needs: + [ + tag_release, + package_code, + get_commit_id, + release_dev, + release_qa, + release_int, + ] + uses: ./.github/workflows/create_release_notes.yml + with: + VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}} + CREATE_INT_RELEASE_NOTES: true + CREATE_INT_RC_RELEASE_NOTES: false + CREATE_PROD_RELEASE_NOTES: false + MARK_JIRA_RELEASED: false + secrets: + DEV_CLOUD_FORMATION_EXECUTE_LAMBDA_ROLE: ${{ secrets.DEV_CLOUD_FORMATION_EXECUTE_LAMBDA_ROLE }} + DEV_CLOUD_FORMATION_CHECK_VERSION_ROLE: ${{ secrets.DEV_CLOUD_FORMATION_CHECK_VERSION_ROLE }} + INT_CLOUD_FORMATION_CHECK_VERSION_ROLE: ${{ secrets.INT_CLOUD_FORMATION_CHECK_VERSION_ROLE }} + PROD_CLOUD_FORMATION_CHECK_VERSION_ROLE: ${{ secrets.PROD_CLOUD_FORMATION_CHECK_VERSION_ROLE }} + + release_prod: + needs: [tag_release, package_code, get_commit_id, release_int] + uses: ./.github/workflows/cdk_release_code.yml + with: + TARGET_ENVIRONMENT: prod + VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}} + COMMIT_ID: ${{needs.get_commit_id.outputs.commit_id}} + LOG_RETENTION_IN_DAYS: 30 + DEPLOY_CHANGE: true + FORWARD_CSOC_LOGS: true + secrets: + CDK_PULL_IMAGE_ROLE: ${{ secrets.PROD_CDK_PULL_IMAGE_ROLE }} + CLOUD_FORMATION_DEPLOY_ROLE: ${{ secrets.PROD_CLOUD_FORMATION_DEPLOY_ROLE }} + + create_release_notes_post_prod: + needs: + [ + tag_release, + package_code, + get_commit_id, + release_dev, + release_qa, + release_int, + release_prod, + ] + uses: ./.github/workflows/create_release_notes.yml + with: + VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}} + CREATE_INT_RELEASE_NOTES: false + CREATE_INT_RC_RELEASE_NOTES: false + CREATE_PROD_RELEASE_NOTES: true + MARK_JIRA_RELEASED: true + secrets: + DEV_CLOUD_FORMATION_EXECUTE_LAMBDA_ROLE: ${{ secrets.DEV_CLOUD_FORMATION_EXECUTE_LAMBDA_ROLE }} + DEV_CLOUD_FORMATION_CHECK_VERSION_ROLE: ${{ secrets.DEV_CLOUD_FORMATION_CHECK_VERSION_ROLE }} + INT_CLOUD_FORMATION_CHECK_VERSION_ROLE: ${{ secrets.INT_CLOUD_FORMATION_CHECK_VERSION_ROLE }} + PROD_CLOUD_FORMATION_CHECK_VERSION_ROLE: ${{ secrets.PROD_CLOUD_FORMATION_CHECK_VERSION_ROLE }} diff --git a/.github/workflows/sync_copilot.yml b/.github/workflows/sync_copilot.yml new file mode 100644 index 00000000..6621df74 --- /dev/null +++ b/.github/workflows/sync_copilot.yml @@ -0,0 +1,13 @@ +name: deploy to environments + +on: + schedule: + - cron: "0 4 * * 1" # weekly + workflow_dispatch: + +jobs: + sync_copilot: + uses: NHSDigital/eps-common-workflows/.github/workflows/sync_copilot.yml@copilot + permissions: + contents: write + pull-requests: write