Skip to content

Commit

Permalink
common: trigger the main workflow for branches that are...
Browse files Browse the repository at this point in the history
...not maintained on pmem/pmdk

Signed-off-by: Jan Michalski <[email protected]>
  • Loading branch information
janekmi committed Jul 21, 2023
1 parent b3e60ae commit 1b68a99
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ name: Main
on:
workflow_dispatch:
pull_request:
push:
# It is just for developer convenience so pushes to forks triggers the same
# workflow as for pull requests. For branches that match the following
# ignore patterns, the workflow has to be triggered manually.
branches-ignore:
- master
- stable-*

jobs:
src_checkers:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,8 @@ jobs:
- name: Run the build
env:
TEST_BUILD: ${{ matrix.TEST_BUILD }}
COVERAGE: ${{ matrix.COVERAGE }}
# Coverage is meant to be measured only for pull requests.
# Note: github.event_name for a workflow which has been called by
# another workflow contains the triggering event of the caller workflow.
COVERAGE: ${{ github.event_name == 'pull_request' && matrix.COVERAGE || 0 }}
run: cd $WORKDIR && ./build-CI.sh

0 comments on commit 1b68a99

Please sign in to comment.