fix has-artifacts

This commit is contained in:
Jacob Heider 2023-02-24 16:03:59 -05:00
parent 081c2739f3
commit 489f0f421a
No known key found for this signature in database
GPG key ID: A98011B5713535BF

View file

@ -8,7 +8,7 @@ jobs:
cd: cd:
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
HAS_ARTIFACTS: ${{ env.HAS_ARTIFACTS }} has-artifacts: ${{ steps.has-artifacts.outputs.has-artifacts }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
@ -21,12 +21,15 @@ jobs:
WATCHER_URL: ${{ secrets.WATCHER_URL }} WATCHER_URL: ${{ secrets.WATCHER_URL }}
TEA_API_TOKEN: ${{ secrets.TEA_API_TOKEN }} TEA_API_TOKEN: ${{ secrets.TEA_API_TOKEN }}
- run: ./scripts/has-artifacts.ts ${{ github.repository }} ${{ github.sha }} >>$GITHUB_ENV - uses: teaxyz/pantry.core/.github/actions/cache@main
env: id: has-artifacts
GITHUB_TOKEN: ${{github.token}} with:
AWS_S3_CACHE: ${{ secrets.AWS_S3_CACHE }} repo: ${{ github.repository }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} sha: ${{ github.sha }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} 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: bottle-pr:
strategy: strategy:
@ -38,7 +41,7 @@ jobs:
- darwin+aarch64 - darwin+aarch64
- linux+aarch64 - linux+aarch64
needs: [cd] 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 uses: teaxyz/pantry.core/.github/workflows/bottle.yml@main
with: with:
platform: ${{ matrix.platform }} platform: ${{ matrix.platform }}
@ -47,7 +50,7 @@ jobs:
cleanup: cleanup:
needs: [bottle-pr] needs: [bottle-pr]
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ needs.cd.outputs.HAS_ARTIFACTS == 'true' }} if: ${{ needs.cd.outputs.has-artifacts == 'true' }}
env: env:
PR: ${{ needs.bottle.outputs.pr }} PR: ${{ needs.bottle.outputs.pr }}
steps: steps:
@ -73,7 +76,7 @@ jobs:
bottle-standalone: bottle-standalone:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [cd] needs: [cd]
if: ${{ needs.cd.outputs.HAS_ARTIFACTS == 'false' }} if: ${{ needs.cd.outputs.has-artifacts == 'false' }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: technote-space/get-diff-action@v6 - uses: technote-space/get-diff-action@v6