Update readme #100739
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |