Skip to content

Commit

Permalink
Merge pull request #6710 from mbien/ci-branch-restricted-trigger
Browse files Browse the repository at this point in the history
CI: limit push trigger to primary branches
  • Loading branch information
mbien authored Nov 26, 2023
2 parents 14983fe + 8830c1a commit 50ed415
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,19 @@ name: NetBeans

on:
push:
branches:
- 'master'
- 'delivery'
- 'release*'

pull_request:
# unlocked event is used as super secret restart button
types: [opened, synchronize, unlocked]

# Allows you to run this workflow manually from the Actions tab in GitHub UI
# keep in mind this will have ALL tests enabled
workflow_dispatch:

# cancel other PR workflow run in the same head-base group if it exists (e.g. during PR syncs)
# if this is not a PR run (no github.head_ref and github.base_ref defined), use an UID as group
concurrency:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,13 @@ name: NetBeans Native Execution Libraries


on:
# Triggers the workflow on push or pull request events but only for
# relevant paths
push:
branches:
- 'master'
- 'delivery'
- 'release*'
# Triggers the workflow on push or pull request events but only for
# relevant paths
paths:
- .github/workflows/native-binary-build-dlight.nativeexecution.y*
- ide/dlight.nativeexecution/**
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/native-binary-build-lib.profiler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,13 @@ name: NetBeans Profiler Libraries


on:
# Triggers the workflow on push or pull request events but only for
# relevant paths
push:
branches:
- 'master'
- 'delivery'
- 'release*'
# Triggers the workflow on push or pull request events but only for
# relevant paths
paths:
- .github/workflows/native-binary-build-lib.profiler.y*
- profiler/lib.profiler/**
Expand Down

0 comments on commit 50ed415

Please sign in to comment.