From b4b271b885dd1409a97da43208eda8dcbce7f78a Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Fri, 8 Dec 2023 17:48:01 -0500 Subject: [PATCH] ci: make events api fail conditionally (#88) --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9078157..a14c8a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,8 @@ jobs: uses: LizardByte/setup-release-action@master # keep this on master, to prevent endless depandabot PRs with: changelog_path: ./tests/data/set${{ matrix.set }}/CHANGELOG.md - fail_on_events_api_error: false + fail_on_events_api_error: # PRs will fail if this is true + ${{ github.event_name == 'pull_request' && 'false' || 'true' }} github_token: ${{ secrets.GITHUB_TOKEN }} # can use GITHUB_TOKEN for read-only access - name: Set action variables