Skip to content

Commit 27b0e8e

Browse files
committed
ci: 👷 auto update bot token every 4th hour
1 parent 59dede6 commit 27b0e8e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/bot-token.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: 🔑 Update Bot Token
2+
on:
3+
schedule:
4+
- cron: '0 */4 * * *'
5+
jobs:
6+
run:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: bubkoo/use-app-token@v1
10+
with:
11+
app_id: ${{ secrets.APP_ID }}
12+
private_key: ${{ secrets.PRIVATE_KEY }}
13+
secret_name: BOT_TOKEN

0 commit comments

Comments
 (0)