Skip to content

Commit 731889f

Browse files
committed
chore: fixes release action
This commit adds workflow_dispatch trigger method to re-trigger the Action on-demand. It also configures the Checkout Action to use the CI User's Secrect token. Ref: https://github.community/t/how-to-push-to-protected-branches-in-a-github-action/16101/35
1 parent b191053 commit 731889f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
name: Release
2-
on: [push, pull_request]
2+
on: [push, pull_request, workflow_dispatch]
33

44
jobs:
55
release:
66
runs-on: ubuntu-20.04
77
steps:
88
- uses: actions/checkout@v2
9+
with:
10+
token: ${{ secrets.GH_TOKEN }}
911

1012
- name: Run semantic-release
1113
run: |

0 commit comments

Comments
 (0)