fix picking artifact location in bottle.yml

This commit is contained in:
Jacob Heider 2022-12-20 18:29:41 -05:00
parent 11c863706e
commit 94101a0b93
No known key found for this signature in database
GPG key ID: A98011B5713535BF
2 changed files with 11 additions and 3 deletions

View file

@ -1,6 +1,12 @@
name: bottle name: bottle
on: workflow_call on:
workflow_call:
inputs:
new-version:
type: boolean
required: false
default: false
jobs: jobs:
bottle: bottle:
@ -46,13 +52,13 @@ jobs:
fi fi
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v3
if: ${{ !startsWith(github.ref, 'refs/pull/')}} if: ${{ inputs.new-version }}
with: with:
name: ${{ matrix.platform.name }} name: ${{ matrix.platform.name }}
path: tea.xyz/var/pantry path: tea.xyz/var/pantry
- run: scripts/fetch-pr-artifacts.ts ${{ github.repository }} ${{ github.sha }} ${{ matrix.platform.name }} - run: scripts/fetch-pr-artifacts.ts ${{ github.repository }} ${{ github.sha }} ${{ matrix.platform.name }}
if: startsWith(github.ref, 'refs/pull/') if: ${{ !inputs.new-version }}
env: env:
GITHUB_TOKEN: ${{github.token}} GITHUB_TOKEN: ${{github.token}}
AWS_S3_CACHE: ${{ secrets.AWS_S3_CACHE }} AWS_S3_CACHE: ${{ secrets.AWS_S3_CACHE }}

View file

@ -17,4 +17,6 @@ jobs:
bottle: bottle:
needs: [build] needs: [build]
uses: ./.github/workflows/bottle.yml uses: ./.github/workflows/bottle.yml
with:
new-version: true
secrets: inherit secrets: inherit