Skip to content

Commit

Permalink
actions: Skip toolchain check on branch creation
Browse files Browse the repository at this point in the history
Do not trigger enforce-toolchain-synchronization.yml when branch is
created. Workflow fails on new branches due to lack of reference
revision. It impacts all backport PRs

Signed-off-by: Jan Gałda <[email protected]>
  • Loading branch information
jangalda-nsc committed Dec 19, 2024
1 parent 4989dd1 commit ef172cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/enforce-toolchain-synchronization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ on:
push:
branches:
- '**' # Triggers on pushes to any branch

jobs:
check-prs:
if: ${{ !github.event.created }} # Skip for new branches
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit ef172cd

Please sign in to comment.