-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (61 loc) · 2.22 KB
/
pull_request.yaml
File metadata and controls
69 lines (61 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Pull Request
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
pr_title_format_check:
name: PR Title Format Check
uses: NHSDigital/eps-common-workflows/.github/workflows/pr_title_check.yml@5ac2707dd9cd60ad127275179495b9c890d74711
permissions:
pull-requests: write
get_config_values:
uses: NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@5ac2707dd9cd60ad127275179495b9c890d74711
with:
verify_published_from_main_image: false
get_pypi_token:
name: Get PyPI Token for Trusted Publishing
runs-on: ubuntu-22.04
permissions:
id-token: write
outputs:
pypi_token: ${{ steps.get_pypi_token.outputs.pypi_token }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
name: Checkout source code
- name: Get PyPI token
id: get_pypi_token
uses: ./.github/actions/get_pypi_token
quality_checks:
name: Quality Checks
needs: get_config_values
uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks-devcontainer.yml@5ac2707dd9cd60ad127275179495b9c890d74711
with:
pinned_image: ${{ needs.get_config_values.outputs.pinned_image }}
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
tag_release:
name: Tag Release (Dry Run)
needs: [get_config_values, get_pypi_token]
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@5ac2707dd9cd60ad127275179495b9c890d74711
with:
pinned_image: ${{ needs.get_config_values.outputs.pinned_image }}
branch_name: ${{ github.event.pull_request.head.ref }}
dry_run: true
pypi_publish: true
secrets:
PYPI_TOKEN: ${{ needs.get_pypi_token.outputs.pypi_token }}
permissions:
id-token: write
contents: write
dependabot_auto_approve_and_merge:
name: Dependabot Auto Approve and Merge
needs: quality_checks
uses: NHSDigital/eps-common-workflows/.github/workflows/dependabot-auto-approve-and-merge.yml@5ac2707dd9cd60ad127275179495b9c890d74711
permissions:
contents: write
pull-requests: write
secrets:
AUTOMERGE_APP_ID: ${{ secrets.AUTOMERGE_APP_ID }}
AUTOMERGE_PEM: ${{ secrets.AUTOMERGE_PEM }}