Skip to content

Commit 22fe1ec

Browse files
authored
Fix: [AEA-0000] - use common workflows (#688)
## Summary - Routine Change ### Details - use common workflows
1 parent c9d369d commit 22fe1ec

File tree

9 files changed

+26
-245
lines changed

9 files changed

+26
-245
lines changed

.github/workflows/cdk_package_code.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
packages: read
2020
steps:
2121
- name: Checkout code
22-
uses: actions/checkout@v5
22+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
2323
with:
2424
ref: ${{ env.BRANCH_NAME }}
2525

@@ -34,7 +34,7 @@ jobs:
3434
asdf_version: ${{ steps.asdf-version.outputs.version }}
3535

3636
- name: Cache asdf
37-
uses: actions/cache@v4
37+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
3838
with:
3939
path: |
4040
~/.asdf
@@ -66,7 +66,7 @@ jobs:
6666
Makefile \
6767
cdk.json
6868
69-
- uses: actions/upload-artifact@v5
69+
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
7070
name: upload build artifact
7171
with:
7272
name: build_artifact

.github/workflows/cdk_release_code.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737

3838
steps:
3939
- name: Checkout local github actions
40-
uses: actions/checkout@v5
40+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
4141
with:
4242
ref: ${{ env.BRANCH_NAME }}
4343
fetch-depth: 0
@@ -46,14 +46,14 @@ jobs:
4646
4747
- name: Configure AWS Credentials
4848
id: connect-aws-pull-image
49-
uses: aws-actions/configure-aws-credentials@v5
49+
uses: aws-actions/configure-aws-credentials@00943011d9042930efac3dcd3a170e4273319bc8
5050
with:
5151
aws-region: eu-west-2
5252
role-to-assume: ${{ secrets.CDK_PULL_IMAGE_ROLE }}
5353
role-session-name: eps-vpc-resources-pull-image
5454

5555
- name: build_artifact download
56-
uses: actions/download-artifact@v6
56+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53
5757
with:
5858
name: build_artifact
5959

@@ -78,7 +78,7 @@ jobs:
7878
7979
- name: Configure AWS Credentials
8080
id: connect-aws
81-
uses: aws-actions/configure-aws-credentials@v5
81+
uses: aws-actions/configure-aws-credentials@00943011d9042930efac3dcd3a170e4273319bc8
8282
with:
8383
aws-region: eu-west-2
8484
role-to-assume: ${{ secrets.CLOUD_FORMATION_DEPLOY_ROLE }}
@@ -132,7 +132,7 @@ jobs:
132132
contents: write
133133
steps:
134134
- name: Checkout gh-pages
135-
uses: actions/checkout@v5
135+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
136136
with:
137137
ref: gh-pages
138138
path: gh-pages

.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@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
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@aabc1def5fce03f01c5e5c02ca5e4aff3e7aaed6
30+
uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks.yml@ba86b0c6a2a3d4b87398e538e410cec90f57133d
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@8a48d90452dc39858c7d76a9eaf171dbc0180b91
49+
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release.yml@ba86b0c6a2a3d4b87398e538e410cec90f57133d
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 & 145 deletions
This file was deleted.

.github/workflows/create_release_notes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
contents: write
4141
steps:
4242
- name: Checkout local github actions
43-
uses: actions/checkout@v5
43+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
4444
with:
4545
ref: ${{ env.BRANCH_NAME }}
4646
fetch-depth: 0

.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 & 31 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+
uses: NHSDigital/eps-common-workflows/.github/workflows/dependabot-auto-approve-and-merge.yml@ba86b0c6a2a3d4b87398e538e410cec90f57133d
13+
secrets:
14+
AUTOMERGE_APP_ID: ${{ secrets.AUTOMERGE_APP_ID }}
15+
AUTOMERGE_PEM: ${{ secrets.AUTOMERGE_PEM }}
16+
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@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
1925

2026
- name: Get asdf version
2127
id: asdf-version
@@ -27,23 +33,23 @@ jobs:
2733
echo "TAG_FORMAT=$TAG_FORMAT" >> "$GITHUB_OUTPUT"
2834
2935
quality_checks:
30-
uses: NHSDigital/eps-workflow-quality-checks/.github/workflows/quality-checks.yml@aabc1def5fce03f01c5e5c02ca5e4aff3e7aaed6
36+
uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks.yml@ba86b0c6a2a3d4b87398e538e410cec90f57133d
3137
needs: [get_asdf_version]
3238
with:
3339
asdfVersion: ${{ needs.get_asdf_version.outputs.asdf_version }}
3440
secrets:
3541
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3642

3743
pr_title_format_check:
38-
uses: NHSDigital/eps-workflow-semantic-release/.github/workflows/pr_title_check.yml@8a48d90452dc39858c7d76a9eaf171dbc0180b91
44+
uses: NHSDigital/eps-common-workflows/.github/workflows/pr_title_check.yml@ba86b0c6a2a3d4b87398e538e410cec90f57133d
3945

4046
get_issue_number:
4147
runs-on: ubuntu-22.04
4248
outputs:
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@8a48d90452dc39858c7d76a9eaf171dbc0180b91
74+
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release.yml@ba86b0c6a2a3d4b87398e538e410cec90f57133d
6975
with:
7076
dry_run: true
7177
asdfVersion: ${{ needs.get_asdf_version.outputs.asdf_version }}

0 commit comments

Comments
 (0)