-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (27 loc) · 946 Bytes
/
fetch-champion-icons.yml
File metadata and controls
34 lines (27 loc) · 946 Bytes
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
name: Fetch Champion Icons
on:
schedule:
- cron: "0 */12 * * *" # Every 12 hours
workflow_dispatch:
permissions:
contents: write
jobs:
fetch-icons:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Install wget
run: sudo apt-get update && sudo apt-get install -y wget
- name: Fetch Champion Icons
run: |
mkdir -p public/assets/champions
cd public/assets/champions
wget -r -np -nd -A png -N https://raw.communitydragon.org/latest/plugins/rcp-be-lol-game-data/global/default/v1/champion-icons/
- name: Commit and Push Changes
run: |
git config --local user.name "GitHub Action"
git config --local user.email "action@github.com"
git add public/assets/champions/*.png
git commit -m "GHA: Update champion icons" || echo "No changes to commit"
git push