We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a6ec708 + 5db69c5 commit f8ba47bCopy full SHA for f8ba47b
1 file changed
.github/workflows/package.yml
@@ -2,6 +2,7 @@ on:
2
push:
3
branches:
4
- main
5
+ workflow_dispatch:
6
7
name: Package
8
@@ -22,7 +23,9 @@ jobs:
22
23
run: npm run package
24
- name: Commit
25
run: |
26
+ BRANCH=${{ github.ref }}
27
+ BRANCH=${BRANCH#"refs/heads/"}
28
git config --global user.name "GitHub Actions"
29
git add dist/
30
git commit -m "Update dist" || echo "No changes to commit"
- git push origin main
31
+ git push origin "${BRANCH}"
0 commit comments