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 <michael.kriese@gmx.de>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
This commit is contained in:
Earl Warren 2025-01-30 21:12:40 +00:00 committed by earl-warren
parent 834d6ebe2a
commit e08f3910d3
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: F128CBE6AB3A7201

View file

@ -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: