From a4b3cb624d2f65307430105d018f140a559c37b0 Mon Sep 17 00:00:00 2001 From: Tania Allard Date: Mon, 30 Sep 2024 13:08:16 +0100 Subject: [PATCH] BUG - Fix coverage workflow triggers (#1996) When trying to cut the release candidate for the theme, the `check_coverage` workflow failed; however, this is not meant to run on `release` type events. This PR fixes the syntax so that `releases, schedules, and workflow_call` type events are properly skipped. Ref: https://github.com/pydata/pydata-sphinx-theme/actions/runs/11104806255/job/30850177121 --- .github/workflows/CI.yml | 2 +- docs/_static/switcher.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d930409ea..68ecdca2a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -176,7 +176,7 @@ jobs: needs: run-pytest runs-on: ubuntu-latest # avoid running this on schedule, releases, or workflow_call - if: github.event.workflow_run.event != 'schedule' && github.event.workflow_run.event != 'release' && github.event.workflow_run.event != 'workflow_call' + if: github.event_name != 'schedule' && github.event_name != 'release' && github.event_name != 'workflow_call' permissions: contents: write pull-requests: write diff --git a/docs/_static/switcher.json b/docs/_static/switcher.json index 4082106f8..47b391c59 100644 --- a/docs/_static/switcher.json +++ b/docs/_static/switcher.json @@ -34,4 +34,4 @@ "version": "v0.11.0", "url": "https://pydata-sphinx-theme.readthedocs.io/en/v0.11.0/" } -] \ No newline at end of file +]