Skip to content

Commit 7ba7bf5

Browse files
tsteenbegoneall
authored andcommitted
publish: Only run branch jobs when PR the branch
Relates-to: #661 Signed-off-by: Thomas Steenbergen <thomas_steenbergen@epam.com>
1 parent 34da141 commit 7ba7bf5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
jobs:
66
build_current:
77
name: Build current
8+
if: github.ref == 'refs/heads/master'
89
runs-on: ubuntu-latest
910
container: python:3
1011
steps:
@@ -24,6 +25,7 @@ jobs:
2425
path: ./site
2526
build_v2-draft:
2627
name: Build v2-draft
28+
if: github.ref == 'refs/heads/development/v2.3'
2729
runs-on: ubuntu-latest
2830
container: python:3
2931
steps:

0 commit comments

Comments
 (0)