Skip to content

Commit 22f1f5e

Browse files
VIA-598 AJ Update workflows for readability
1 parent 0e2f5c3 commit 22f1f5e

9 files changed

+21
-20
lines changed

.github/workflows/cicd-1-pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ jobs:
151151
- name: "Checkout code"
152152
uses: actions/checkout@v6
153153

154-
- name: "Deploy ${{ github.sha }} to AWS (dev)"
154+
- name: "Deploy version ${{ github.sha }} to (dev)"
155155
timeout-minutes: 10
156156
uses: ./.github/actions/deploy
157157
with:

.github/workflows/cicd-3-deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
id-token: write
3131
contents: read
3232
steps:
33-
- name: "Check is ${{ github.ref }} a tag"
33+
- name: "Check ref:${{ github.ref }} is a tag"
3434
run: |
3535
if ${{ !startsWith(github.ref, 'refs/tags/') }}; then
3636
echo "❌ Only tagged deployments allowed."

.github/workflows/cicd-4-promote.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363

6464
promote-stage:
6565
name: "Promote stage"
66+
needs: [ metadata ]
6667
uses: ./.github/workflows/stage-6-promote.yaml
6768
with:
6869
environment: ${{ inputs.environment }}

.github/workflows/cicd-6-snapshot-update.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
IAM_ROLE: ${{ secrets.IAM_ROLE }}
3333

3434
steps:
35-
- name: "Configure AWS credentials for S3 upload"
35+
- name: "Configure AWS credentials"
3636
uses: aws-actions/configure-aws-credentials@v5
3737
with:
3838
role-session-name: GitHubActionsSessionUpload

.github/workflows/cicd-7-hydrate-content-cache.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414

1515
jobs:
1616
hydrate:
17-
name: "Hydrate content-cache: ${{inputs.environment}} env"
17+
name: "Hydrate content-cache in (${{inputs.environment}})"
1818
runs-on: ubuntu-latest
1919
environment:
2020
name: ${{ inputs.environment }}
@@ -23,19 +23,19 @@ jobs:
2323
id-token: write
2424
contents: read
2525
steps:
26-
- name: "Check ref"
26+
- name: "Check ref:${{github.ref}} is a tag"
2727
run: |
2828
if ${{ !startsWith(github.ref, 'refs/tags/') }}; then
2929
echo "❌ Only tagged deployments allowed."
3030
exit 1
3131
fi
32-
- name: "Configure AWS credentials for env"
32+
- name: "Configure AWS credentials"
3333
uses: aws-actions/configure-aws-credentials@v5
3434
with:
3535
role-session-name: GitHubActionsSession
3636
role-to-assume: ${{ secrets.IAM_ROLE }}
3737
aws-region: ${{ env.AWS_REGION }}
38-
- name: "Run content-cache-hydrator in ${{ inputs.environment}} environment"
38+
- name: "Run content-cache-hydrator"
3939
run: |
4040
aws lambda invoke --function-name ${AWS_CONTENT_CACHE_HYDRATOR_LAMBDA} response.json || {
4141
echo "Invocation of Content Cache Hydrator failed"

.github/workflows/cicd-8-load-clinical-approved-changed-content.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ env:
2020

2121
jobs:
2222
hydrate:
23-
name: "Load new ${{inputs.vaccine_name}} content: ${{ inputs.environment }} env"
23+
name: "Load new (${{inputs.vaccine_name}}) content in (${{ inputs.environment }})"
2424
runs-on: ubuntu-latest
2525
environment:
2626
name: ${{ inputs.environment }}
@@ -29,19 +29,19 @@ jobs:
2929
id-token: write
3030
contents: read
3131
steps:
32-
- name: "Check ref"
32+
- name: "Check ref:${{ github.ref }} is a tag"
3333
run: |
3434
if ${{ !startsWith(github.ref, 'refs/tags/') }}; then
3535
echo "❌ Only tagged deployments allowed."
3636
exit 1
3737
fi
38-
- name: "Configure AWS credentials for env"
38+
- name: "Configure AWS credentials"
3939
uses: aws-actions/configure-aws-credentials@v5
4040
with:
4141
role-session-name: GitHubActionsSession
4242
role-to-assume: ${{ secrets.IAM_ROLE }}
4343
aws-region: ${{ env.AWS_REGION }}
44-
- name: "Run content-cache-hydrator for ${{ inputs.vaccine_name }} vaccine in ${{ inputs.environment }} environment"
44+
- name: "Run content-cache-hydrator for (${{ inputs.vaccine_name }}) vaccine in (${{ inputs.environment }})"
4545
run: |
4646
aws lambda invoke --function-name ${AWS_CONTENT_CACHE_HYDRATOR_LAMBDA} --cli-binary-format 'raw-in-base64-out' --payload '{"forceUpdate": true, "vaccineToUpdate": "${{ inputs.vaccine_name}}"}' response.json || {
4747
echo "Invocation of Content Cache Hydrator failed"

.github/workflows/cicd-9-scheduled-assurance.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: "Checkout code"
4848
uses: actions/checkout@v6
4949

50-
- name: "Deploy ${{ steps.get-latest-tag-name.outputs.value }} to AWS (preprod)"
50+
- name: "Deploy version ${{ steps.get-latest-tag-name.outputs.value }} to (preprod)"
5151
timeout-minutes: 10
5252
uses: ./.github/actions/deploy
5353
with:
@@ -57,7 +57,7 @@ jobs:
5757
secret_aws_iam_role: ${{ secrets.IAM_ROLE }}
5858
secret_aws_slack_channel_id: ${{ secrets.ALARMS_SLACK_CHANNEL_ID }}
5959

60-
- name: "Run contract tests (sandpit+mocked)"
60+
- name: "Run contract tests on ${{ steps.get-latest-tag-name.outputs.value }} (EliD:sandpit, EliD:mocked)"
6161
timeout-minutes: 3
6262
uses: ./.github/actions/run-contract-tests
6363
with:
@@ -147,7 +147,7 @@ jobs:
147147
- name: "Checkout code"
148148
uses: actions/checkout@v6
149149

150-
- name: "Deploy ${{ steps.get-latest-tag-name.outputs.value }} to AWS (preprod)"
150+
- name: "Deploy version ${{ steps.get-latest-tag-name.outputs.value }} to (preprod)"
151151
timeout-minutes: 10
152152
uses: ./.github/actions/deploy
153153
with:
@@ -157,7 +157,7 @@ jobs:
157157
secret_aws_iam_role: ${{ secrets.IAM_ROLE }}
158158
secret_aws_slack_channel_id: ${{ secrets.ALARMS_SLACK_CHANNEL_ID }}
159159

160-
- name: "Run contract tests (sandpit+mocked)"
160+
- name: "Run contract tests on ${{ steps.get-latest-tag-name.outputs.value }} (EliD:sandpit, EliD:mocked)"
161161
timeout-minutes: 3
162162
uses: ./.github/actions/run-contract-tests
163163
with:

.github/workflows/stage-5-acceptance.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
with:
5050
ref: ${{ inputs.checkout_ref }}
5151

52-
- name: "Configure AWS credentials for env"
52+
- name: "Configure AWS credentials"
5353
uses: aws-actions/configure-aws-credentials@v5
5454
with:
5555
role-session-name: GitHubActionsSession
@@ -67,7 +67,7 @@ jobs:
6767
exit 1
6868
fi
6969
70-
- name: "Run E2E tests for version - ${{ inputs.checkout_ref }}"
70+
- name: "Run E2E tests for version ${{ inputs.checkout_ref }}"
7171
timeout-minutes: 10
7272
uses: ./.github/actions/run-e2e-tests
7373
with:
@@ -95,7 +95,7 @@ jobs:
9595
with:
9696
ref: ${{ inputs.checkout_ref }}
9797

98-
- name: "Run contract tests for version - ${{ inputs.checkout_ref }} (EliD:sandpit, EliD:mocked)"
98+
- name: "Run contract tests for version ${{ inputs.checkout_ref }} (EliD:sandpit, EliD:mocked)"
9999
timeout-minutes: 3
100100
uses: ./.github/actions/run-contract-tests
101101
with:

.github/workflows/stage-6-promote.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
role-session-name: GitHubActionsSession
4949
role-to-assume: ${{ secrets.IAM_ROLE }}
5050
aws-region: ${{ env.AWS_REGION }}
51-
- name: "Download artefacts from source"
51+
- name: "Download artefacts from source for version ${{ inputs.release_tag }}"
5252
env:
5353
AWS_S3_SOURCE_RELEASES_BUCKET: vita-${{ secrets.AWS_ACCOUNT_ID }}-releases-${{ env.ENVIRONMENT }}
5454
run: |
@@ -85,7 +85,7 @@ jobs:
8585
role-session-name: GitHubActionsSession
8686
role-to-assume: ${{ secrets.IAM_ROLE }}
8787
aws-region: ${{ env.AWS_REGION }}
88-
- name: "Upload artefacts to target"
88+
- name: "Upload artefacts to target for version ${{ inputs.release_tag }}"
8989
env:
9090
AWS_S3_TARGET_RELEASES_BUCKET: vita-${{ secrets.AWS_ACCOUNT_ID }}-releases-${{ inputs.environment }}
9191
run: |

0 commit comments

Comments
 (0)