Skip to content

Commit f594d9c

Browse files
authored
Fix: [AEA-0000] - use common workflow (#2159)
## Summary - Routine Change ### Details - use common workflow
1 parent 128d453 commit f594d9c

10 files changed

+30
-269
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
@@ -26,7 +26,7 @@ jobs:
2626
TAG_FORMAT=$(yq '.TAG_FORMAT' .github/config/settings.yml)
2727
echo "TAG_FORMAT=$TAG_FORMAT" >> "$GITHUB_OUTPUT"
2828
quality_checks:
29-
uses: NHSDigital/eps-workflow-quality-checks/.github/workflows/quality-checks.yml@v5.1.3
29+
uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks.yml@8243c6b1e493c00f2285339039ab8748b4212a64
3030
needs: [get_asdf_version]
3131
with:
3232
asdfVersion: ${{ needs.get_asdf_version.outputs.asdf_version }}
@@ -45,7 +45,7 @@ jobs:
4545
4646
tag_release:
4747
needs: [quality_checks, get_commit_id, get_asdf_version]
48-
uses: NHSDigital/eps-workflow-semantic-release/.github/workflows/tag-release.yml@f3d071da30cd01dc0e4472ac0e2d7452db78d1c7
48+
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release.yml@8243c6b1e493c00f2285339039ab8748b4212a64
4949
with:
5050
dry_run: true
5151
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ jobs:
2121
# Steps represent a sequence of tasks that will be executed as part of the job
2222
steps:
2323
- name: Checkout local github scripts
24-
uses: actions/checkout@v5
24+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
2525
with:
2626
ref: ${{ env.BRANCH_NAME }}
2727
sparse-checkout: |
2828
.github/scripts
2929
3030
- name: Configure AWS Credentials
31-
uses: aws-actions/configure-aws-credentials@v5
31+
uses: aws-actions/configure-aws-credentials@00943011d9042930efac3dcd3a170e4273319bc8
3232
with:
3333
aws-region: eu-west-2
3434
role-to-assume: ${{ secrets.DEV_CLOUD_FORMATION_DEPLOY_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 & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,21 @@ 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@8243c6b1e493c00f2285339039ab8748b4212a64
14+
secrets:
15+
AUTOMERGE_APP_ID: ${{ secrets.AUTOMERGE_APP_ID }}
16+
AUTOMERGE_PEM: ${{ secrets.AUTOMERGE_PEM }}
17+
1118
get_asdf_version:
1219
runs-on: ubuntu-22.04
1320
outputs:
1421
asdf_version: ${{ steps.asdf-version.outputs.version }}
1522
tag_format: ${{ steps.load-config.outputs.TAG_FORMAT }}
1623
steps:
1724
- name: Checkout code
18-
uses: actions/checkout@v5
25+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
1926

2027
- name: Get asdf version
2128
id: asdf-version
@@ -27,15 +34,15 @@ jobs:
2734
echo "TAG_FORMAT=$TAG_FORMAT" >> "$GITHUB_OUTPUT"
2835
2936
quality_checks:
30-
uses: NHSDigital/eps-workflow-quality-checks/.github/workflows/quality-checks.yml@v5.1.3
37+
uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks.yml@8243c6b1e493c00f2285339039ab8748b4212a64
3138
needs: [get_asdf_version]
3239
with:
3340
asdfVersion: ${{ needs.get_asdf_version.outputs.asdf_version }}
3441
secrets:
3542
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3643

3744
pr_title_format_check:
38-
uses: NHSDigital/eps-workflow-semantic-release/.github/workflows/pr_title_check.yml@56891c92a8c3840f4d38464a421acaf323debbb3
45+
uses: NHSDigital/eps-common-workflows/.github/workflows/pr_title_check.yml@8243c6b1e493c00f2285339039ab8748b4212a64
3946

4047
get_issue_number:
4148
runs-on: ubuntu-22.04
@@ -66,7 +73,7 @@ jobs:
6673

6774
tag_release:
6875
needs: [get_asdf_version]
69-
uses: NHSDigital/eps-workflow-semantic-release/.github/workflows/tag-release.yml@f3d071da30cd01dc0e4472ac0e2d7452db78d1c7
76+
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release.yml@8243c6b1e493c00f2285339039ab8748b4212a64
7077
with:
7178
dry_run: true
7279
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
@@ -11,7 +11,7 @@ jobs:
1111
tag_format: ${{ steps.load-config.outputs.TAG_FORMAT }}
1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v5
14+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
1515

1616
- name: Get asdf version
1717
id: asdf-version
@@ -23,7 +23,7 @@ jobs:
2323
echo "TAG_FORMAT=$TAG_FORMAT" >> "$GITHUB_OUTPUT"
2424
2525
quality_checks:
26-
uses: NHSDigital/eps-workflow-quality-checks/.github/workflows/quality-checks.yml@v5.1.3
26+
uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks.yml@8243c6b1e493c00f2285339039ab8748b4212a64
2727
needs: [get_asdf_version]
2828
with:
2929
asdfVersion: ${{ needs.get_asdf_version.outputs.asdf_version }}
@@ -42,7 +42,7 @@ jobs:
4242
4343
tag_release:
4444
needs: [quality_checks, get_commit_id, get_asdf_version]
45-
uses: NHSDigital/eps-workflow-semantic-release/.github/workflows/tag-release.yml@f3d071da30cd01dc0e4472ac0e2d7452db78d1c7
45+
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release.yml@8243c6b1e493c00f2285339039ab8748b4212a64
4646
with:
4747
dry_run: false
4848
asdfVersion: ${{ needs.get_asdf_version.outputs.asdf_version }}

.github/workflows/run_regression_tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ jobs:
2626

2727
steps:
2828
- name: Checkout local github actions
29-
uses: actions/checkout@v5
29+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
3030
with:
3131
ref: ${{ env.BRANCH_NAME }}
3232
fetch-depth: 0
3333

3434
- name: Generate a token to authenticate regression testing
3535
id: generate-token
36-
uses: actions/create-github-app-token@v2
36+
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42
3737
with:
3838
app-id: ${{ vars.REGRESSION_TESTS_APP_ID }}
3939
private-key: ${{ secrets.REGRESSION_TESTS_PEM }}
@@ -52,7 +52,7 @@ jobs:
5252
asdf_version: ${{ steps.asdf-version.outputs.version }}
5353

5454
- name: Cache asdf
55-
uses: actions/cache@v4
55+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
5656
with:
5757
path: |
5858
~/.asdf

0 commit comments

Comments
 (0)