ops: correctly using inputs
commit7802ce627970efeaa29dd5a18fad4776584fe64c
authorHunter Miller <hunter@hmiller.dev>
dateSat 29 Apr 2023, 21:10 (3 years ago)
parentdec92eb
.github/actions/glob/action.yml+8−2
@@ -7,6 +7,12 @@ inputs:
77 docket:
88 description: "Docket file to edit"
99 required: true
10+ access_key:
11+ description: "S3 access key"
12+ required: true
13+ secret_key:
14+ description: "S3 secret key"
15+ required: true
1016outputs:
1117 hash:
1218 description: "Glob hash"
@@ -19,8 +25,8 @@ runs:
1925 with:
2026 provider: aws
2127 region: 'us-east-1'
22− access_key: ${{ secrets.S3_ACCESS_KEY }}
23− secret_key: ${{ secrets.S3_SECRET_KEY }}
28+ access_key: ${{ inputs.S3_ACCESS_KEY }}
29+ secret_key: ${{ inputs.S3_SECRET_KEY }}
2430 host_base: nyc3.digitaloceanspaces.com
2531 host_bucket: '%(bucket)s.nyc3.digitaloceanspaces.com'
2632 - id: glob
.github/workflows/deploy.yml+2
@@ -46,6 +46,8 @@ jobs:
4646 with:
4747 folder: 'ui/dist/*'
4848 docket: 'desk/desk.docket-0'
49+ access_key: ${{ secrets.S3_ACCESS_KEY }}
50+ secret_key: ${{ secrets.S3_SECRET_KEY }}
4951 - name: Commit and Push Glob
5052 run: |
5153 git config --global user.name github-actions