align with pantry.core

requires https://github.com/teaxyz/pantry.core/pull/336
This commit is contained in:
Jacob Heider 2023-02-24 15:44:35 -05:00 committed by Jacob Heider
parent 541a94533b
commit 081c2739f3
3 changed files with 10 additions and 9 deletions

View file

@ -13,17 +13,14 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
repository: teaxyz/pantry.core repository: teaxyz/pantry.core
- uses: actions/cache@v3
with: - uses: teaxyz/pantry.core/.github/actions/setup-brewkit@main
path: |
~/.deno
~/.cache/deno
key: ${{ runner.os }}-deno-cd-${{ hashFiles('deno.jsonc')}}
- uses: teaxyz/setup@v0
- run: ./scripts/map-projects-to-githubs.ts - run: ./scripts/map-projects-to-githubs.ts
env: env:
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 - run: ./scripts/has-artifacts.ts ${{ github.repository }} ${{ github.sha }} >>$GITHUB_ENV
env: env:
GITHUB_TOKEN: ${{github.token}} GITHUB_TOKEN: ${{github.token}}

View file

@ -19,7 +19,7 @@ jobs:
RESULT="$RESULT $y" RESULT="$RESULT $y"
done done
echo "diff=$RESULT" >> $GITHUB_OUTPUT echo "diff=$RESULT" >> $GITHUB_OUTPUT
build: ci:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:

View file

@ -1,4 +1,7 @@
name: cleanup # cleans up our S3 staging area if a PR is closed without merge
name: teaxyz s3 cleanup
on: on:
pull_request: pull_request:
types: [closed] types: [closed]
@ -14,6 +17,7 @@ jobs:
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 }}
aws-region: us-east-1 aws-region: us-east-1
- name: remove staged artifacts - name: remove staged artifacts
run: | run: |
REPO=$(echo ${{github.repository}} | sed -e 's_teaxyz/__') REPO=$(echo ${{github.repository}} | sed -e 's_teaxyz/__')