mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
fix picking artifact location in bottle.yml
This commit is contained in:
parent
11c863706e
commit
94101a0b93
2 changed files with 11 additions and 3 deletions
12
.github/workflows/bottle.yml
vendored
12
.github/workflows/bottle.yml
vendored
|
@ -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 }}
|
||||||
|
|
2
.github/workflows/new-version.yml
vendored
2
.github/workflows/new-version.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue