Skip to content

Commit 6a22a53

Browse files
authored
Merge pull request #249 from r-devel/workflows/triggers
update triggers for build and publish workflow
2 parents 5cdead3 + 0db6d66 commit 6a22a53

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/build-and-publish-image.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,16 @@ name: Build and publish Docker image
77

88
on:
99
workflow_dispatch:
10+
push:
11+
branches: ["main","devel"]
12+
paths:
13+
- '.github/workflows/build-and-publish-image.yml'
1014
pull_request:
1115
branches: ["main","devel"]
1216
types: [closed]
1317
paths:
1418
- '.github/workflows/build-and-publish-image.yml'
19+
- '.devcontainer/devcontainer.json'
1520
- 'Dockerfile'
1621
- 'reinstall-cmake.sh'
1722
- 'VERSION'
@@ -28,7 +33,9 @@ jobs:
2833
build-and-push-image:
2934
if: |
3035
github.event_name == 'workflow_dispatch' ||
31-
(github.event_name == 'pull_request' && github.event.pull_request.merged == true)
36+
github.event_name == 'push' ||
37+
(github.event_name == 'pull_request' &&
38+
github.event.pull_request.merged == true)
3239
runs-on: ubuntu-latest
3340

3441
steps:

0 commit comments

Comments
 (0)