on master help sign in
ops: correctly using inputs
7802ce6Hunter Miller
.github/actions/glob/action.yml+8−2
@@ -7,6 +7,12 @@ inputs:
7 docket:
7 docket:
8 description: "Docket file to edit"
8 description: "Docket file to edit"
9 required: true
9 required: true
10+ access_key:
11+ description: "S3 access key"
12+ required: true
13+ secret_key:
14+ description: "S3 secret key"
15+ required: true
10outputs:
16outputs:
11 hash:
17 hash:
12 description: "Glob hash"
18 description: "Glob hash"
@@ -19,8 +25,8 @@ runs:
19 with:
25 with:
20 provider: aws
26 provider: aws
21 region: 'us-east-1'
27 region: 'us-east-1'
22− access_key: ${{ secrets.S3_ACCESS_KEY }}
28+ access_key: ${{ inputs.S3_ACCESS_KEY }}
23− secret_key: ${{ secrets.S3_SECRET_KEY }}
29+ secret_key: ${{ inputs.S3_SECRET_KEY }}
24 host_base: nyc3.digitaloceanspaces.com
30 host_base: nyc3.digitaloceanspaces.com
25 host_bucket: '%(bucket)s.nyc3.digitaloceanspaces.com'
31 host_bucket: '%(bucket)s.nyc3.digitaloceanspaces.com'
26 - id: glob
32 - id: glob
.github/workflows/deploy.yml+2
@@ -46,6 +46,8 @@ jobs:
46 with:
46 with:
47 folder: 'ui/dist/*'
47 folder: 'ui/dist/*'
48 docket: 'desk/desk.docket-0'
48 docket: 'desk/desk.docket-0'
49+ access_key: ${{ secrets.S3_ACCESS_KEY }}
50+ secret_key: ${{ secrets.S3_SECRET_KEY }}
49 - name: Commit and Push Glob
51 - name: Commit and Push Glob
50 run: |
52 run: |
51 git config --global user.name github-actions
53 git config --global user.name github-actions