Skip to content

Commit d842858

Browse files
VIA-653 AJ Add all vaccines in content approval pipeline
1 parent acd438f commit d842858

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

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

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,19 @@ on:
1212
type: choice
1313
options:
1414
- rsv
15+
- rsv-pregnancy
16+
- td-ipv-vaccine-3-in-1-teenage-booster
17+
- 6-in-1-vaccine
18+
- rotavirus-vaccine
19+
- hpv-vaccine
20+
- menb-vaccine-for-children
21+
- mmr-vaccine
22+
- pneumococcal-vaccine
23+
- shingles-vaccine
24+
- menacwy-vaccine
25+
- 4-in-1-preschool-booster-vaccine
26+
- whooping-cough-vaccination
27+
- hib-menc-vaccine
1528
required: true
1629

1730
env:
@@ -20,7 +33,7 @@ env:
2033

2134
jobs:
2235
hydrate:
23-
name: "Load new (${{inputs.vaccine_name}}) content in (${{ inputs.environment }})"
36+
name: "Reload (${{inputs.vaccine_name}}) content"
2437
runs-on: ubuntu-latest
2538
environment:
2639
name: ${{ inputs.environment }}
@@ -29,18 +42,13 @@ jobs:
2942
id-token: write
3043
contents: read
3144
steps:
32-
- name: "Check ref:${{ github.ref }} is a tag"
33-
run: |
34-
if ${{ !startsWith(github.ref, 'refs/tags/') }}; then
35-
echo "❌ Only tagged deployments allowed."
36-
exit 1
37-
fi
3845
- name: "Configure AWS credentials"
3946
uses: aws-actions/configure-aws-credentials@v5
4047
with:
4148
role-session-name: GitHubActionsSession
4249
role-to-assume: ${{ secrets.IAM_ROLE }}
4350
aws-region: ${{ env.AWS_REGION }}
51+
4452
- name: "Run content-cache-hydrator for (${{ inputs.vaccine_name }}) vaccine in (${{ inputs.environment }})"
4553
run: |
4654
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 || {

0 commit comments

Comments
 (0)