11name : deploy_pr
2-
32on :
43 pull_request :
54 branches : [main]
6-
75permissions : {}
8-
96jobs :
10- dependabot-auto-approve-and-merge :
11- needs : quality_checks
12- uses : NHSDigital/eps-common-workflows/.github/workflows/dependabot-auto-approve-and-merge.yml@e798d5aee897de6f7dc387dd5623fcd9ba4c8929
13- permissions :
14- contents : write
15- pull-requests : write
16- secrets :
17- AUTOMERGE_APP_ID : ${{ secrets.AUTOMERGE_APP_ID }}
18- AUTOMERGE_PEM : ${{ secrets.AUTOMERGE_PEM }}
19-
207 get_config_values :
218 uses : NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@e798d5aee897de6f7dc387dd5623fcd9ba4c8929
229 permissions :
2512 packages : read
2613 with :
2714 verify_published_from_main_image : false
28-
2915 quality_checks :
3016 uses : NHSDigital/eps-common-workflows/.github/workflows/quality-checks-devcontainer.yml@8399c1f015c1304e40771cbd8ccc24c7ed48fdbc
3117 needs : [get_config_values]
@@ -37,18 +23,15 @@ jobs:
3723 pinned_image : ${{ needs.get_config_values.outputs.pinned_image }}
3824 secrets :
3925 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
40-
4126 pr_title_format_check :
4227 uses : NHSDigital/eps-common-workflows/.github/workflows/pr_title_check.yml@e798d5aee897de6f7dc387dd5623fcd9ba4c8929
4328 permissions :
4429 pull-requests : write
45-
4630 get_issue_number :
4731 runs-on : ubuntu-22.04
4832 needs : quality_checks
4933 outputs :
5034 issue_number : ${{steps.get_issue_number.outputs.result}}
51-
5235 steps :
5336 - uses : actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
5437 name : get issue number
6952 ).data[0].number;
7053 }
7154 result-encoding : string
72-
7355 tag_release :
7456 needs : [get_config_values]
7557 uses : NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@e798d5aee897de6f7dc387dd5623fcd9ba4c8929
8264 pinned_image : ${{ needs.get_config_values.outputs.pinned_image }}
8365 branch_name : ${{ github.event.pull_request.head.ref }}
8466 tag_format : ${{ needs.get_config_values.outputs.tag_format }}
85-
8667 get_commit_id :
8768 runs-on : ubuntu-22.04
8869 outputs :
9273 id : commit_id
9374 run : |
9475 echo "commit_id=${{ github.sha }}" >> "$GITHUB_OUTPUT"
95-
9676 package_code :
9777 needs : [get_issue_number, get_config_values]
9878 uses : ./.github/workflows/run_package_code_and_api.yml
10282 id-token : write
10383 with :
10484 pinned_image : ${{ needs.get_config_values.outputs.pinned_image }}
105-
10685 release_code :
10786 needs : [get_issue_number, package_code, get_commit_id, get_config_values]
10887 uses : ./.github/workflows/run_release_code_and_api.yml
@@ -151,7 +130,6 @@ jobs:
151130 CLOUD_FORMATION_DEPLOY_ROLE : ${{ secrets.DEV_CLOUD_FORMATION_DEPLOY_ROLE }}
152131 PROXYGEN_ROLE : ${{ secrets.PROXYGEN_PTL_ROLE }}
153132 REGRESSION_TESTS_PEM : ${{ secrets.REGRESSION_TESTS_PEM }}
154-
155133 release_sandbox_code :
156134 needs : [get_issue_number, package_code, get_commit_id, get_config_values]
157135 uses : ./.github/workflows/run_release_code_and_api.yml
0 commit comments