and this one

This commit is contained in:
Jacob Heider 2023-02-25 03:54:32 -05:00
parent 24bdb5810b
commit d57ed9a803
No known key found for this signature in database
GPG key ID: 59D15ADC7DCD39BB
3 changed files with 4 additions and 3 deletions

View file

@ -30,6 +30,6 @@ runs:
shell: sh
env:
GITHUB_TOKEN: ${{ inputs.token }}
AWS_S3_CACHE: ${{ inputs.AWS_S3_CACHE }}
AWS_S3_BUCKET: ${{ inputs.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ inputs.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ inputs.AWS_SECRET_ACCESS_KEY }}

View file

@ -33,7 +33,7 @@ if (import.meta.main) {
secretKey: Deno.env.get("AWS_SECRET_ACCESS_KEY")!,
region: "us-east-1",
})
const bucket = s3.getBucket(Deno.env.get("AWS_S3_CACHE")!)
const bucket = s3.getBucket(Deno.env.get("AWS_S3_BUCKET")!)
const key = `pull-request/${repo.split("/")[1]}/${pr}/${flavor}`
const artifacts = (await bucket.getObject(key)) ?? panic("No artifacts found")

View file

@ -46,8 +46,9 @@ jobs:
- uses: teaxyz/pantry.core/.github/actions/fetch-pr-artifacts@main
if: ${{ !inputs.new-version }}
with:
platform: ${{ inputs.platform }}
token: ${{ github.token }}
AWS_S3_CACHE: ${{ secrets.AWS_S3_CACHE }}
AWS_S3_BUCKET: ${{ secrets.AWS_S3_CACHE }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}