From 081c2739f3893eb2c9793cab7b48940218408a8f Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Fri, 24 Feb 2023 15:44:35 -0500 Subject: [PATCH] align with pantry.core requires https://github.com/teaxyz/pantry.core/pull/336 --- .github/workflows/cd.yml | 11 ++++------- .github/workflows/ci.yml | 2 +- .github/workflows/cleanup.yml | 6 +++++- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 4c399abe..77735509 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -13,17 +13,14 @@ jobs: - uses: actions/checkout@v3 with: repository: teaxyz/pantry.core - - uses: actions/cache@v3 - with: - path: | - ~/.deno - ~/.cache/deno - key: ${{ runner.os }}-deno-cd-${{ hashFiles('deno.jsonc')}} - - uses: teaxyz/setup@v0 + + - uses: teaxyz/pantry.core/.github/actions/setup-brewkit@main + - run: ./scripts/map-projects-to-githubs.ts env: 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}} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d465743d..95caacf3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: RESULT="$RESULT $y" done echo "diff=$RESULT" >> $GITHUB_OUTPUT - build: + ci: strategy: fail-fast: false matrix: diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index c178a119..3597def2 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -1,4 +1,7 @@ -name: cleanup +# cleans up our S3 staging area if a PR is closed without merge + +name: teaxyz s3 cleanup + on: pull_request: types: [closed] @@ -14,6 +17,7 @@ jobs: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: us-east-1 + - name: remove staged artifacts run: | REPO=$(echo ${{github.repository}} | sed -e 's_teaxyz/__')