File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33name : ' Terraform Build and Deploy'
44
55on :
6- workflow_run :
7- workflows : ["Download Google Drive File"]
8- types : [completed]
9- # TODO - temporary to enable workflow to appear for testing - revert below back to "main" when done with testing
10- # branches: [main]
6+ workflow_call :
7+ inputs :
8+ artifact-name :
9+ required : true
10+ type : string
11+ description : Name of the file to be deployed to S3
1112
1213permissions :
1314 id-token : write
Original file line number Diff line number Diff line change 2020 GOOGLE_FILE_ID : ${{ secrets.GOOGLE_FILE_ID }}
2121 GOOGLE_SERVICE_ACCOUNT : ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
2222
23-
2423 defaults :
2524 run :
2625 shell : bash
6867 run : |
6968 rm -f services.json
7069 rm -f services_decoded.json
71- if : ${{ always() }}
70+ if : ${{ always() }}
71+
72+ trigger-deployment :
73+ uses : ./.github/workflows/deploy.yaml
74+ needs : download
75+ with :
76+ artifact-name : $ARTIFACT_NAME
77+ if : ${{ needs.download.outputs.file-byte-count > 1 }}
78+
You can’t perform that action at this time.
0 commit comments