Skip to content

Commit bbc5206

Browse files
authored
Fix: [AEA-0000] - common workflows (#476)
## Summary - Routine Change ### Details - use common workflows
1 parent 1c285c2 commit bbc5206

File tree

6 files changed

+16
-256
lines changed

6 files changed

+16
-256
lines changed

.github/workflows/ci.yml

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

1717
- name: Get asdf version
1818
id: asdf-version
@@ -23,7 +23,7 @@ jobs:
2323
TAG_FORMAT=$(yq '.TAG_FORMAT' .github/config/settings.yml)
2424
echo "TAG_FORMAT=$TAG_FORMAT" >> "$GITHUB_OUTPUT"
2525
quality_checks:
26-
uses: NHSDigital/eps-workflow-quality-checks/.github/workflows/quality-checks.yml@1d101ac0e5290dc65e3a55742728450f6fa73cb6
26+
uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks.yml@a7daff06de7b695f601d9b1723ca184daca7d898
2727
needs: [get_asdf_version]
2828
with:
2929
asdfVersion: ${{ needs.get_asdf_version.outputs.asdf_version }}
@@ -32,7 +32,7 @@ jobs:
3232

3333
tag_release:
3434
needs: [quality_checks, get_asdf_version]
35-
uses: NHSDigital/eps-workflow-semantic-release/.github/workflows/tag-release.yml@f3d071da30cd01dc0e4472ac0e2d7452db78d1c7
35+
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release.yml@a7daff06de7b695f601d9b1723ca184daca7d898
3636
with:
3737
dry_run: true
3838
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/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: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,20 @@ on:
55
branches: [main]
66

77
jobs:
8+
dependabot-auto-approve-and-merge:
9+
needs: quality_checks
10+
uses: NHSDigital/eps-common-workflows/.github/workflows/dependabot-auto-approve-and-merge.yml@a7daff06de7b695f601d9b1723ca184daca7d898
11+
secrets:
12+
AUTOMERGE_APP_ID: ${{ secrets.AUTOMERGE_APP_ID }}
13+
AUTOMERGE_PEM: ${{ secrets.AUTOMERGE_PEM }}
814
get_asdf_version:
915
runs-on: ubuntu-22.04
1016
outputs:
1117
asdf_version: ${{ steps.asdf-version.outputs.version }}
1218
tag_format: ${{ steps.load-config.outputs.TAG_FORMAT }}
1319
steps:
1420
- name: Checkout code
15-
uses: actions/checkout@v5
21+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
1622

1723
- name: Get asdf version
1824
id: asdf-version
@@ -23,19 +29,19 @@ jobs:
2329
TAG_FORMAT=$(yq '.TAG_FORMAT' .github/config/settings.yml)
2430
echo "TAG_FORMAT=$TAG_FORMAT" >> "$GITHUB_OUTPUT"
2531
quality_checks:
26-
uses: NHSDigital/eps-workflow-quality-checks/.github/workflows/quality-checks.yml@1d101ac0e5290dc65e3a55742728450f6fa73cb6
32+
uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks.yml@a7daff06de7b695f601d9b1723ca184daca7d898
2733
needs: [get_asdf_version]
2834
with:
2935
asdfVersion: ${{ needs.get_asdf_version.outputs.asdf_version }}
3036
secrets:
3137
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3238

3339
pr_title_format_check:
34-
uses: NHSDigital/eps-workflow-semantic-release/.github/workflows/pr_title_check.yml@f3d071da30cd01dc0e4472ac0e2d7452db78d1c7
40+
uses: NHSDigital/eps-common-workflows/.github/workflows/pr_title_check.yml@a7daff06de7b695f601d9b1723ca184daca7d898
3541

3642
tag_release:
3743
needs: [get_asdf_version]
38-
uses: NHSDigital/eps-workflow-semantic-release/.github/workflows/tag-release.yml@f3d071da30cd01dc0e4472ac0e2d7452db78d1c7
44+
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release.yml@a7daff06de7b695f601d9b1723ca184daca7d898
3945
with:
4046
dry_run: true
4147
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
@@ -13,7 +13,7 @@ jobs:
1313
tag_format: ${{ steps.load-config.outputs.TAG_FORMAT }}
1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v5
16+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
1717

1818
- name: Get asdf version
1919
id: asdf-version
@@ -24,7 +24,7 @@ jobs:
2424
TAG_FORMAT=$(yq '.TAG_FORMAT' .github/config/settings.yml)
2525
echo "TAG_FORMAT=$TAG_FORMAT" >> "$GITHUB_OUTPUT"
2626
quality_checks:
27-
uses: NHSDigital/eps-workflow-quality-checks/.github/workflows/quality-checks.yml@1d101ac0e5290dc65e3a55742728450f6fa73cb6
27+
uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks.yml@a7daff06de7b695f601d9b1723ca184daca7d898
2828
needs: [get_asdf_version]
2929
with:
3030
asdfVersion: ${{ needs.get_asdf_version.outputs.asdf_version }}
@@ -33,7 +33,7 @@ jobs:
3333

3434
tag_release:
3535
needs: [quality_checks, get_asdf_version]
36-
uses: NHSDigital/eps-workflow-semantic-release/.github/workflows/tag-release.yml@f3d071da30cd01dc0e4472ac0e2d7452db78d1c7
36+
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release.yml@a7daff06de7b695f601d9b1723ca184daca7d898
3737
with:
3838
dry_run: false
3939
asdfVersion: ${{ needs.get_asdf_version.outputs.asdf_version }}

0 commit comments

Comments
 (0)