mirror of
https://github.com/ivabus/pantry
synced 2024-11-30 04:05:06 +03:00
fix has-artifacts
This commit is contained in:
parent
081c2739f3
commit
489f0f421a
1 changed files with 13 additions and 10 deletions
23
.github/workflows/cd.yml
vendored
23
.github/workflows/cd.yml
vendored
|
@ -8,7 +8,7 @@ jobs:
|
|||
cd:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
HAS_ARTIFACTS: ${{ env.HAS_ARTIFACTS }}
|
||||
has-artifacts: ${{ steps.has-artifacts.outputs.has-artifacts }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
|
@ -21,12 +21,15 @@ jobs:
|
|||
WATCHER_URL: ${{ secrets.WATCHER_URL }}
|
||||
TEA_API_TOKEN: ${{ secrets.TEA_API_TOKEN }}
|
||||
|
||||
- run: ./scripts/has-artifacts.ts ${{ github.repository }} ${{ github.sha }} >>$GITHUB_ENV
|
||||
env:
|
||||
GITHUB_TOKEN: ${{github.token}}
|
||||
AWS_S3_CACHE: ${{ secrets.AWS_S3_CACHE }}
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
- uses: teaxyz/pantry.core/.github/actions/cache@main
|
||||
id: has-artifacts
|
||||
with:
|
||||
repo: ${{ github.repository }}
|
||||
sha: ${{ github.sha }}
|
||||
token: ${{github.token}}
|
||||
s3-bucket: ${{ secrets.AWS_S3_CACHE }}
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
|
||||
bottle-pr:
|
||||
strategy:
|
||||
|
@ -38,7 +41,7 @@ jobs:
|
|||
- darwin+aarch64
|
||||
- linux+aarch64
|
||||
needs: [cd]
|
||||
if: ${{ needs.cd.outputs.HAS_ARTIFACTS == 'true' }}
|
||||
if: ${{ needs.cd.outputs.has-artifacts == 'true' }}
|
||||
uses: teaxyz/pantry.core/.github/workflows/bottle.yml@main
|
||||
with:
|
||||
platform: ${{ matrix.platform }}
|
||||
|
@ -47,7 +50,7 @@ jobs:
|
|||
cleanup:
|
||||
needs: [bottle-pr]
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ needs.cd.outputs.HAS_ARTIFACTS == 'true' }}
|
||||
if: ${{ needs.cd.outputs.has-artifacts == 'true' }}
|
||||
env:
|
||||
PR: ${{ needs.bottle.outputs.pr }}
|
||||
steps:
|
||||
|
@ -73,7 +76,7 @@ jobs:
|
|||
bottle-standalone:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [cd]
|
||||
if: ${{ needs.cd.outputs.HAS_ARTIFACTS == 'false' }}
|
||||
if: ${{ needs.cd.outputs.has-artifacts == 'false' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: technote-space/get-diff-action@v6
|
||||
|
|
Loading…
Reference in a new issue