fix(ci): guard publish-latest against non-main dispatch
Reject workflow_dispatch runs from non-main refs to prevent publishing unintended code or fast-forwarding main unexpectedly.
This commit is contained in:
parent
65774be488
commit
f5ffbb9c4f
|
|
@ -22,6 +22,7 @@ permissions:
|
|||
|
||||
jobs:
|
||||
publish:
|
||||
if: github.ref == 'refs/heads/main'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
|
|
|||
Loading…
Reference in New Issue