Uploaded website source
This commit is contained in:
29
NOT SOURCE (website leak)/.github/workflows/update-tier-data.yml
vendored
Normal file
29
NOT SOURCE (website leak)/.github/workflows/update-tier-data.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
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
|
||||
Reference in New Issue
Block a user