Skip to content

Commit ba60224

Browse files
Merge pull request #35 from Knowledge-Graph-Hub/issue26_dont_push_to_s3_when_not_on_main
Don't make release when we aren't on main
2 parents e3bbf94 + c8cdfff commit ba60224

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Jenkinsfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ pipeline {
8686
}
8787
}
8888
stage('upload files') {
89+
when {
90+
branch 'main'
91+
}
8992
steps {
9093
dir('./gitrepo') {
9194
script {
@@ -155,6 +158,9 @@ pipeline {
155158
}
156159
}
157160
stage('create github release') {
161+
when {
162+
branch 'main'
163+
}
158164
steps {
159165
dir('./gitrepo') {
160166
echo 'Skipping GitHub release creation until GH_RELEASE_TOKEN credential is set up'

0 commit comments

Comments
 (0)