File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 5858 name : Tag release
5959 runs-on : ubuntu-latest
6060 needs : validate
61- if : github.event_name == 'workflow_dispatch'
61+ # Run on manual dispatch or on push to main
62+ if : github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main')
6263 steps :
6364 - name : Checkout
6465 uses : actions/checkout@v4
6970 uses :
anothrNick/[email protected] 7071 env :
7172 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
72- DEFAULT_BUMP : ${{ github.event.inputs.bump }}
73+ # Use input if manual dispatch; otherwise default to patch on push
74+ DEFAULT_BUMP : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.bump || 'patch' }}
7375 TAG_PREFIX : ' v'
7476
7577 - name : Create GitHub Release
You can’t perform that action at this time.
0 commit comments