Skip to content

Commit

Permalink
Make workflows not trigger twice on pushes to PRs (#364)
Browse files Browse the repository at this point in the history
* Do not trigger twice on PRs, add workflow_dispatch to run manually

* Add comment to run the workflows manually
  • Loading branch information
jmcarcell authored Feb 2, 2023
1 parent 3f6c725 commit ba1594b
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 6 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/edm4hep.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: edm4hep

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
workflow_dispatch:

jobs:
build-and-test:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/key4hep.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: key4hep

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
workflow_dispatch:

jobs:
build-and-test:
runs-on: ubuntu-latest
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: pre-commit

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
workflow_dispatch:

jobs:
pre-commit:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/sanitizers.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: sanitizers

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
workflow_dispatch:

jobs:
build-and-test:
runs-on: ubuntu-latest
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: linux

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
workflow_dispatch:

jobs:
build-and-test:
runs-on: ubuntu-latest
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: ubuntu

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
workflow_dispatch:

jobs:
test:
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,13 @@ After compilation you can run rudimentary tests with

make test

## Running workflows
To run workflows manually (for example, when working on your own fork) go to
`Actions` then click on the workflow that you want to run (for example
`edm4hep`). Then if the workflow has the `workflow_dispatch` trigger you will be
able to run it by clicking `Run workflow` and selecting on which branch it will
run.

## Advanced build topics

It is possible to instrument the complete podio build with sanitizers using the
Expand Down

0 comments on commit ba1594b

Please sign in to comment.