Skip to content

Commit d00dd7a

Browse files
committed
fix: add condition to run job on master branch or workflow dispatch
1 parent db3ba60 commit d00dd7a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/go.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ permissions:
2020

2121
jobs:
2222
determine-version:
23+
if: github.ref == 'refs/heads/master' || github.event_name == 'workflow_dispatch'
2324
runs-on: ubuntu-latest
2425
outputs:
2526
tag: ${{ steps.next_version.outputs.tag }}

0 commit comments

Comments
 (0)