From f371cd4232fb4120b02bd924739e9e5f36a9e78a Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Thu, 30 Jan 2025 16:57:28 +0100 Subject: [PATCH] chore(ci): skip cascade if [skip cascade] is found in the PR title When there are multiple PRs in flight, using a var to disable the cascading PR that eventually runs the end to end tests (for instance because the change is about examples) is error prone. Allowing each pull request to indivudually decide when it is relevant or not is more practical and fine grain. --- .forgejo/workflows/cascade-end-to-end.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/cascade-end-to-end.yml b/.forgejo/workflows/cascade-end-to-end.yml index 028bba7..727b13a 100644 --- a/.forgejo/workflows/cascade-end-to-end.yml +++ b/.forgejo/workflows/cascade-end-to-end.yml @@ -8,7 +8,8 @@ on: jobs: cascade: runs-on: docker - if: vars.CASCADE != 'no' + if: > + ! contains(github.event.pull_request.title, '[skip cascade]') steps: - uses: actions/cascading-pr@v1.0.1 with: