Skip to content

Commit

Permalink
actions: Limit Toolchain Sync execution
Browse files Browse the repository at this point in the history
Action should be run only on branches which are targets of PRs.

Signed-off-by: Jan Gałda <[email protected]>
(cherry picked from commit 1c2673a)
  • Loading branch information
jangalda-nsc authored and github-actions[bot] committed Jan 10, 2025
1 parent 40ed8dd commit 836e16e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/enforce-toolchain-synchronization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ name: Enforce rebasing Pull Requests if Toolchain was modified on target branch

on:
push:
branches:
- '**' # Triggers on pushes to any branch
branches: # Trigger on push to main and release branches
- main
- 'v*-branch'
jobs:
check-prs:
if: ${{ !github.event.created }} # Skip for new branches
Expand Down

0 comments on commit 836e16e

Please sign in to comment.