name: Update TierTagger Data on: schedule: - cron: '0 * * * *' # Every hour workflow_dispatch: # Allow manual trigger from GitHub UI jobs: update-tier-data: runs-on: ubuntu-latest permissions: contents: write steps: - uses: actions/checkout@v4 - name: Fetch tier data from eaglertiers.com run: | curl -sf --max-time 30 "https://eaglertiers.com/api/players/all" -o tier_data.json || { echo "Fetch failed, keeping existing file" exit 0 } - name: Commit if changed run: | git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" git add tier_data.json git diff --staged --quiet || git commit -m "chore: update tier data [skip ci]" git push