mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
and this one
This commit is contained in:
parent
24bdb5810b
commit
d57ed9a803
3 changed files with 4 additions and 3 deletions
|
@ -30,6 +30,6 @@ runs:
|
||||||
shell: sh
|
shell: sh
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ inputs.token }}
|
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_ACCESS_KEY_ID: ${{ inputs.AWS_ACCESS_KEY_ID }}
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ inputs.AWS_SECRET_ACCESS_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ inputs.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
|
|
@ -33,7 +33,7 @@ if (import.meta.main) {
|
||||||
secretKey: Deno.env.get("AWS_SECRET_ACCESS_KEY")!,
|
secretKey: Deno.env.get("AWS_SECRET_ACCESS_KEY")!,
|
||||||
region: "us-east-1",
|
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 key = `pull-request/${repo.split("/")[1]}/${pr}/${flavor}`
|
||||||
const artifacts = (await bucket.getObject(key)) ?? panic("No artifacts found")
|
const artifacts = (await bucket.getObject(key)) ?? panic("No artifacts found")
|
||||||
|
|
3
.github/workflows/bottle.yml
vendored
3
.github/workflows/bottle.yml
vendored
|
@ -46,8 +46,9 @@ jobs:
|
||||||
- uses: teaxyz/pantry.core/.github/actions/fetch-pr-artifacts@main
|
- uses: teaxyz/pantry.core/.github/actions/fetch-pr-artifacts@main
|
||||||
if: ${{ !inputs.new-version }}
|
if: ${{ !inputs.new-version }}
|
||||||
with:
|
with:
|
||||||
|
platform: ${{ inputs.platform }}
|
||||||
token: ${{ github.token }}
|
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_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue