-
-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (34 loc) · 862 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Update readme
on:
schedule:
- cron: "*/15 * * * *"
workflow_dispatch:
jobs:
main:
name: ✨ README Stats
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: 🧱 Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: 🔩 Setup Bun
uses: oven-sh/setup-bun@v2
- name: 📦 Install dependencies
run: bun install
- name: ✨ Generate README.md
run: bun start
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
- name: 🚀 Save changes
run: |
if [[ "$(git status --porcelain)" != "" ]]; then
git config user.name IgorKowalczykBot
git config user.email [email protected]
git add .
git commit -m "[Bot] Update blog feed and activity"
git push -f
fi