Skip to content

Commit 26e30c4

Browse files
author
robot
committed
feat: commit if possible
1 parent 56f62f5 commit 26e30c4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Diff for: .github/workflows/generate.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ jobs:
2525
run: npm run generate
2626
- name: Commit static
2727
run: |
28-
./scripts/commit.sh
28+
source ./scripts/commit.sh

Diff for: scripts/commit.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
if [[ `git status --porcelain` ]]; then
2+
git config --global user.name 'robot'
3+
git commit -am "feat: automate generate data"
4+
git push
5+
fi

0 commit comments

Comments
 (0)