From 0386b7dce6ac56bd3b49be82813015c0de69111e Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Thu, 21 Nov 2024 15:51:24 -0800 Subject: [PATCH 1/2] Check installation workflow upon edit This immediately verifies that the updated workflow is still valid, rather than waiting for the next scheduled run or a manual run. --- .github/workflows/installation.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/installation.yaml b/.github/workflows/installation.yaml index c94331c..ce655d5 100644 --- a/.github/workflows/installation.yaml +++ b/.github/workflows/installation.yaml @@ -7,6 +7,10 @@ on: # Every day at 17:42 UTC / 9:42 Seattle (winter) / 10:42 Seattle (summer) - cron: "42 17 * * *" + pull_request: + paths: + - .github/workflows/installation.yaml + workflow_dispatch: jobs: From 59ba2d9a38c867bbb30a39c3e123282c1ed6b7a2 Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Thu, 21 Nov 2024 16:13:14 -0800 Subject: [PATCH 2/2] Only report failures when run on default branch This prevents PR runs or workflow dispatches on other branches from opening/closing issues. --- .github/workflows/installation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/installation.yaml b/.github/workflows/installation.yaml index ce655d5..b1ff62a 100644 --- a/.github/workflows/installation.yaml +++ b/.github/workflows/installation.yaml @@ -45,7 +45,7 @@ jobs: # Surface failures via GitHub issues failure-reporting: - if: ${{ always() }} + if: ${{ always() && github.ref_name == github.event.repository.default_branch }} runs-on: ubuntu-latest needs: [test] steps: