From 3e70d37904fe78e40abeeea93ebf82b8306400d1 Mon Sep 17 00:00:00 2001 From: David C Hall Date: Tue, 10 Oct 2023 13:02:02 -0700 Subject: [PATCH] Update GHA workflows (#330) Skip dependents in test bot --- .github/workflows/publish.yml | 3 +++ .github/workflows/tests.yml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e1743dfc..9638188e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,6 +7,9 @@ jobs: pr-pull: if: contains(github.event.pull_request.labels.*.name, 'pr-pull') runs-on: macos-latest + permissions: + contents: write + pull-requests: write steps: - name: Set up Homebrew uses: Homebrew/actions/setup-homebrew@master diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 17dede14..156b58ec 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,7 +17,7 @@ jobs: - name: Cache Homebrew Bundler RubyGems id: cache - uses: actions/cache@v1 + uses: actions/cache@v3 with: path: ${{ steps.set-up-homebrew.outputs.gems-path }} key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }} @@ -38,7 +38,7 @@ jobs: - run: brew test-bot --only-tap-syntax - - run: brew test-bot --only-formulae --root-url=https://ghcr.io/v2/davidchall/hep + - run: brew test-bot --only-formulae --skip-dependents --root-url=https://ghcr.io/v2/davidchall/hep if: github.event_name == 'pull_request' - name: Upload bottles as artifact