Skip to content

Commit 1b68a99

Browse files
committed
common: trigger the main workflow for branches that are...
...not maintained on pmem/pmdk Signed-off-by: Jan Michalski <jan.michalski@intel.com>
1 parent b3e60ae commit 1b68a99

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/main.yml

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ name: Main
44
on:
55
workflow_dispatch:
66
pull_request:
7+
push:
8+
# It is just for developer convenience so pushes to forks triggers the same
9+
# workflow as for pull requests. For branches that match the following
10+
# ignore patterns, the workflow has to be triggered manually.
11+
branches-ignore:
12+
- master
13+
- stable-*
714

815
jobs:
916
src_checkers:

.github/workflows/ubuntu.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,8 @@ jobs:
4848
- name: Run the build
4949
env:
5050
TEST_BUILD: ${{ matrix.TEST_BUILD }}
51-
COVERAGE: ${{ matrix.COVERAGE }}
51+
# Coverage is meant to be measured only for pull requests.
52+
# Note: github.event_name for a workflow which has been called by
53+
# another workflow contains the triggering event of the caller workflow.
54+
COVERAGE: ${{ github.event_name == 'pull_request' && matrix.COVERAGE || 0 }}
5255
run: cd $WORKDIR && ./build-CI.sh

0 commit comments

Comments
 (0)