Skip to content

Commit 4b6350c

Browse files
authored
Update update-index.yml
1 parent 47d4a24 commit 4b6350c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/update-index.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Update Index
22
on:
33
workflow_dispatch:
44
schedule:
5-
- cron: "34 * * * *"
5+
- cron: "34 */2 * * *"
66
jobs:
77
update_index:
88
permissions:
@@ -35,9 +35,10 @@ jobs:
3535
- name: Index
3636
run: cd main; set -x; python -m hatch run py-wtf index-since --since "$(date -d '1hour ago' '+%Y-%m-%d %H:%M:%S')" ../pages
3737
- name: commit
38-
run: |
38+
run: |
3939
cd pages
4040
git config user.name "github-actions[bot]"
4141
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
42+
git add .
4243
git commit -am 'Auto-generated index'
4344
git push

0 commit comments

Comments
 (0)