11name : Pull request test and deploy
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 }}
197 get_config_values :
208 uses : NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@e798d5aee897de6f7dc387dd5623fcd9ba4c8929
219 permissions :
@@ -35,18 +23,15 @@ jobs:
3523 pinned_image : ${{ needs.get_config_values.outputs.pinned_image }}
3624 secrets :
3725 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
38-
3926 pr_title_format_check :
4027 uses : NHSDigital/eps-common-workflows/.github/workflows/pr_title_check.yml@e798d5aee897de6f7dc387dd5623fcd9ba4c8929
4128 permissions :
4229 pull-requests : write
43-
4430 get_issue_number :
4531 runs-on : ubuntu-22.04
4632 needs : quality_checks
4733 outputs :
4834 issue_number : ${{steps.get_issue_number.outputs.result}}
49-
5035 steps :
5136 - uses : actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
5237 name : get issue number
6752 ).data[0].number;
6853 }
6954 result-encoding : string
70-
7155 tag_release :
7256 needs : [get_config_values]
7357 uses : NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@e798d5aee897de6f7dc387dd5623fcd9ba4c8929
8064 pinned_image : ${{ needs.get_config_values.outputs.pinned_image }}
8165 branch_name : ${{ github.event.pull_request.head.ref }}
8266 tag_format : ${{ needs.get_config_values.outputs.tag_format }}
83-
8467 get_commit_id :
8568 runs-on : ubuntu-22.04
8669 outputs :
9073 id : commit_id
9174 run : |
9275 echo "commit_id=${{ github.sha }}" >> "$GITHUB_OUTPUT"
93-
9476 package_code :
9577 needs : [get_issue_number, get_config_values]
9678 uses : ./.github/workflows/sam_package_code.yml
10082 packages : read
10183 with :
10284 pinned_image : ${{ needs.get_config_values.outputs.pinned_image }}
103-
10485 release_code :
10586 needs : [get_issue_number, package_code, get_commit_id, get_config_values]
10687 uses : ./.github/workflows/sam_release_code.yml
0 commit comments