mirror of
https://github.com/partofmyid/register.git
synced 2026-06-05 10:36:50 +07:00
fix fail from no changes
This commit is contained in:
parent
4d8c4127d8
commit
2c957fd82a
1 changed files with 13 additions and 8 deletions
21
.github/workflows/db.yml
vendored
21
.github/workflows/db.yml
vendored
|
|
@ -26,14 +26,19 @@ jobs:
|
|||
|
||||
- name: Generate statistics
|
||||
run: |
|
||||
node scripts/dict.js > stats/dict.json 2>&1 &
|
||||
ls domains | wc -l > stats/count.txt 2>&1 &
|
||||
wait
|
||||
rm stats/*_error.log
|
||||
|
||||
node scripts/dict.js > stats/dict.json 2>stats/dict_error.log &
|
||||
ls domains | wc -l > stats/count.txt 2>stats/count_error.log &
|
||||
wait
|
||||
|
||||
- name: Commit changes
|
||||
run: |
|
||||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git config --global user.name "github-actions[bot]"
|
||||
git add stats/dict.json stats/count.txt
|
||||
git commit -m "[automated] update stats"
|
||||
git push
|
||||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git config --global user.name "github-actions[bot]"
|
||||
git add stats
|
||||
|
||||
if [ -n "$(git status --porcelain)" ]; then
|
||||
git commit -m "[automated] update stats"
|
||||
git push
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue