1 parent b8f7747 commit d71b3feCopy full SHA for d71b3fe
1 file changed
.github/workflows/update.yml
@@ -0,0 +1,28 @@
1
+name: Auto log update
2
+
3
+on:
4
+ workflow_dispatch:
5
+ schedule:
6
+ - cron: '12,32,52 * * * *'
7
8
+permissions:
9
+ contents: write
10
11
+jobs:
12
+ update-log:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: Checkout
16
+ uses: actions/checkout@v4
17
18
+ - name: Update log
19
+ run: |
20
+ echo "$(date -u '+%Y-%m-%d %H:%M:%S UTC') - auto update" >> activity.log
21
22
+ - name: Commit & push
23
24
+ git config user.name "github-actions[bot]"
25
+ git config user.email "github-actions[bot]@users.noreply.github.com"
26
+ git add activity.log
27
+ git commit -m "chore: log update $(date -u '+%Y-%m-%d %H:%M')" || echo "Nothing to commit"
28
+ git push
0 commit comments