Skip to content

Commit d3bf04b

Browse files
authored
Fix: [AEA-0000] - use common workflow (#2409)
## Summary - Routine Change ### Details - use new common workflow repo
1 parent a2571bb commit d3bf04b

10 files changed

+33
-273
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
tag_format: ${{ steps.load-config.outputs.TAG_FORMAT }}
1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@v5
18+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
1919

2020
- name: Get asdf version
2121
id: asdf-version
@@ -27,7 +27,7 @@ jobs:
2727
echo "TAG_FORMAT=$TAG_FORMAT" >> "$GITHUB_OUTPUT"
2828
2929
quality_checks:
30-
uses: NHSDigital/eps-workflow-quality-checks/.github/workflows/quality-checks.yml@v5.1.9
30+
uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks.yml@97ca4eded331f6aa937aeb15fcda039a240f9245
3131
needs: [get_asdf_version]
3232
with:
3333
asdfVersion: ${{ needs.get_asdf_version.outputs.asdf_version }}
@@ -46,7 +46,7 @@ jobs:
4646
4747
tag_release:
4848
needs: [quality_checks, get_commit_id, get_asdf_version]
49-
uses: NHSDigital/eps-workflow-semantic-release/.github/workflows/tag-release.yml@7a672cb9ff6478c8285152fcd02e3dd10fd76af8
49+
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release.yml@97ca4eded331f6aa937aeb15fcda039a240f9245
5050
with:
5151
dry_run: true
5252
asdfVersion: ${{ needs.get_asdf_version.outputs.asdf_version }}

.github/workflows/combine-dependabot-prs.yml

Lines changed: 0 additions & 151 deletions
This file was deleted.

.github/workflows/delete_old_cloudformation_stacks.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717

1818
steps:
1919
- name: Checkout local code
20-
uses: actions/checkout@v5
20+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
2121
with:
2222
ref: ${{ env.BRANCH_NAME }}
2323
fetch-depth: 0
2424

2525
- name: Configure AWS Credentials
26-
uses: aws-actions/configure-aws-credentials@v5
26+
uses: aws-actions/configure-aws-credentials@00943011d9042930efac3dcd3a170e4273319bc8
2727
with:
2828
aws-region: eu-west-2
2929
role-to-assume: ${{ secrets.DEV_CLOUD_FORMATION_DEPLOY_ROLE }}
@@ -44,13 +44,13 @@ jobs:
4444

4545
steps:
4646
- name: Checkout local code
47-
uses: actions/checkout@v5
47+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
4848
with:
4949
ref: ${{ env.BRANCH_NAME }}
5050
fetch-depth: 0
5151

5252
- name: Configure AWS Credentials
53-
uses: aws-actions/configure-aws-credentials@v5
53+
uses: aws-actions/configure-aws-credentials@00943011d9042930efac3dcd3a170e4273319bc8
5454
with:
5555
aws-region: eu-west-2
5656
role-to-assume: ${{ secrets.PROXYGEN_PTL_ROLE }}

.github/workflows/dependabot_auto_approve_and_merge.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/pr-link.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/pull_request.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,20 @@ env:
88
BRANCH_NAME: ${{ github.event.pull_request.head.ref }}
99

1010
jobs:
11+
dependabot-auto-approve-and-merge:
12+
needs: quality_checks
13+
uses: NHSDigital/eps-common-workflows/.github/workflows/dependabot-auto-approve-and-merge.yml@97ca4eded331f6aa937aeb15fcda039a240f9245
14+
secrets:
15+
AUTOMERGE_APP_ID: ${{ secrets.AUTOMERGE_APP_ID }}
16+
AUTOMERGE_PEM: ${{ secrets.AUTOMERGE_PEM }}
1117
get_asdf_version:
1218
runs-on: ubuntu-22.04
1319
outputs:
1420
asdf_version: ${{ steps.asdf-version.outputs.version }}
1521
tag_format: ${{ steps.load-config.outputs.TAG_FORMAT }}
1622
steps:
1723
- name: Checkout code
18-
uses: actions/checkout@v5
24+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
1925

2026
- name: Get asdf version
2127
id: asdf-version
@@ -26,15 +32,15 @@ jobs:
2632
TAG_FORMAT=$(yq '.TAG_FORMAT' .github/cfg/settings.yml)
2733
echo "TAG_FORMAT=$TAG_FORMAT" >> "$GITHUB_OUTPUT"
2834
quality_checks:
29-
uses: NHSDigital/eps-workflow-quality-checks/.github/workflows/quality-checks.yml@v5.1.9
35+
uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks.yml@97ca4eded331f6aa937aeb15fcda039a240f9245
3036
needs: [get_asdf_version]
3137
with:
3238
asdfVersion: ${{ needs.get_asdf_version.outputs.asdf_version }}
3339
secrets:
3440
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3541

3642
pr_title_format_check:
37-
uses: NHSDigital/eps-workflow-semantic-release/.github/workflows/pr_title_check.yml@f3d071da30cd01dc0e4472ac0e2d7452db78d1c7
43+
uses: NHSDigital/eps-common-workflows/.github/workflows/pr_title_check.yml@97ca4eded331f6aa937aeb15fcda039a240f9245
3844

3945
get_issue_number:
4046
runs-on: ubuntu-22.04
@@ -43,7 +49,7 @@ jobs:
4349
issue_number: ${{steps.get_issue_number.outputs.result}}
4450

4551
steps:
46-
- uses: actions/github-script@v8
52+
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
4753
name: get issue number
4854
id: get_issue_number
4955
with:
@@ -65,7 +71,7 @@ jobs:
6571

6672
tag_release:
6773
needs: [get_asdf_version]
68-
uses: NHSDigital/eps-workflow-semantic-release/.github/workflows/tag-release.yml@7a672cb9ff6478c8285152fcd02e3dd10fd76af8
74+
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release.yml@97ca4eded331f6aa937aeb15fcda039a240f9245
6975
with:
7076
dry_run: true
7177
asdfVersion: ${{ needs.get_asdf_version.outputs.asdf_version }}

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
tag_format: ${{ steps.load-config.outputs.TAG_FORMAT }}
1515
steps:
1616
- name: Checkout code
17-
uses: actions/checkout@v5
17+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
1818

1919
- name: Get asdf version
2020
id: asdf-version
@@ -25,7 +25,7 @@ jobs:
2525
TAG_FORMAT=$(yq '.TAG_FORMAT' .github/cfg/settings.yml)
2626
echo "TAG_FORMAT=$TAG_FORMAT" >> "$GITHUB_OUTPUT"
2727
quality_checks:
28-
uses: NHSDigital/eps-workflow-quality-checks/.github/workflows/quality-checks.yml@v5.1.9
28+
uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks.yml@97ca4eded331f6aa937aeb15fcda039a240f9245
2929
needs: [get_asdf_version]
3030
with:
3131
asdfVersion: ${{ needs.get_asdf_version.outputs.asdf_version }}
@@ -44,7 +44,7 @@ jobs:
4444
4545
tag_release:
4646
needs: [quality_checks, get_commit_id, get_asdf_version]
47-
uses: NHSDigital/eps-workflow-semantic-release/.github/workflows/tag-release.yml@7a672cb9ff6478c8285152fcd02e3dd10fd76af8
47+
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release.yml@97ca4eded331f6aa937aeb15fcda039a240f9245
4848
with:
4949
dry_run: false
5050
asdfVersion: ${{ needs.get_asdf_version.outputs.asdf_version }}

0 commit comments

Comments
 (0)