1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-forgejo synced 2025-03-15 14:44:38 +01:00

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
No known key found for this signature in database
GPG key ID: F128CBE6AB3A7201

View file

@ -8,7 +8,8 @@ on:
jobs: jobs:
cascade: cascade:
runs-on: docker runs-on: docker
if: vars.CASCADE != 'no' if: >
! contains(github.event.pull_request.title, '[skip cascade]')
steps: steps:
- uses: actions/cascading-pr@v1.0.1 - uses: actions/cascading-pr@v1.0.1
with: with: