Skip to content

Commit f8ba47b

Browse files
authored
Merge pull request #1 from physion/fix-runner-culture-issue
Enabling manual run of the package workflow
2 parents a6ec708 + 5db69c5 commit f8ba47b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/package.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ on:
22
push:
33
branches:
44
- main
5+
workflow_dispatch:
56

67
name: Package
78

@@ -22,7 +23,9 @@ jobs:
2223
run: npm run package
2324
- name: Commit
2425
run: |
26+
BRANCH=${{ github.ref }}
27+
BRANCH=${BRANCH#"refs/heads/"}
2528
git config --global user.name "GitHub Actions"
2629
git add dist/
2730
git commit -m "Update dist" || echo "No changes to commit"
28-
git push origin main
31+
git push origin "${BRANCH}"

0 commit comments

Comments
 (0)