From e08f3910d382cb689c6f9dc09f9287c569f2cd64 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Thu, 30 Jan 2025 21:12:40 +0000 Subject: [PATCH] chore(ci): skip cascade if [skip cascade] is found in the PR title (#313) ## Testing This is a copy/paste of an existing pull request verified to work https://code.forgejo.org/forgejo/runner/pulls/476 ## Description 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. Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/313 Reviewed-by: Michael Kriese Co-authored-by: Earl Warren Co-committed-by: Earl Warren --- .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: