Skip to content

Update Rinhers.json Daily #711

Update Rinhers.json Daily

Update Rinhers.json Daily #711

Workflow file for this run

name: Update Rinhers.json Daily
on:
schedule:
# Runs every day at midnight UTC
- cron: '0 * * * *'
workflow_dispatch: # Allows manual triggering
jobs:
run-script:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_PAT }}
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Cache Bun dependencies
uses: actions/[email protected]
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-
- name: Install dependencies
run: bun install
- name: Run script
run: bun run script/index.ts
env:
GITHUB_AUTH_TOKEN: ${{ secrets.GH_PAT }}
- name: Commit and push changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git diff --staged --quiet || git commit -m "chore: update rinhers.json - $(date '+%Y-%m-%d %H:%M:%S')"
git push
env:
GITHUB_AUTH_TOKEN: ${{ secrets.GH_PAT }}