From c029c8b37a0f98f21eafda91896a8681ba5a38eb Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Wed, 12 Jul 2023 14:22:29 -0400 Subject: [PATCH] Run release testing on PR, not push (#5718) ## Summary This job runs whenever I put up a PR to bump the version, which is really useful. But then it also runs again when I merge, and then _that_ job tends to get cancelled immediately, because I run the _actual_ release job, which triggers the cancel-concurrent-runs flow. (See, e.g., https://github.com/astral-sh/ruff/actions/runs/5534191373.) I think it makes sense to run these on PR (when editing `pyproject.toml` and friends), but not again on merge. --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3dd0b1cf20..83c1679cb2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,7 +9,7 @@ on: sha: description: "Optionally, the full sha of the commit to be released" type: string - push: + pull_request: paths: # When we change pyproject.toml, we want to ensure that the maturin builds still work - pyproject.toml