Skip to content

Commit 7b0e458

Browse files
committed
fix: only publish on push to the master branch
1 parent 24ec917 commit 7b0e458

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
repo-token: ${{ secrets.GITHUB_TOKEN }}
3636

3737
publish-glalby-go:
38+
if: github.ref_name == 'master' || github.head_ref == 'master'
3839
needs:
3940
- generate-bindings
4041
- build-libraries

.github/workflows/publish-bindings-go.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
publish-glalby-go:
1515
runs-on: ubuntu-20.04
1616

17+
if: github.ref_name == 'master' || github.head_ref == 'master'
18+
1719
steps:
1820
- name: Set target branch name
1921
run: |

0 commit comments

Comments
 (0)