-
Notifications
You must be signed in to change notification settings - Fork 35
42 lines (32 loc) · 1.19 KB
/
games-list-check.yml
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
35
36
37
38
39
40
41
name: Check Games List.json
on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
check-links:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests pillow
- name: Run script
run: |
python scripts/games-list-autocreate.py link_status.md
- name: Update README with status
run: |
sed -i '/## Games List.json Status/,$d' README.md README.md
echo -e "## Games List.json Status\n\n$(cat link_status.md)" >> README.md
echo -e "\n### Symbols:\n✔: Icon is working.\n\n❓: Icon is either low-res or not a square.\n\n❌: Icon is not working." >> README.md
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add README.md
git diff --cached --quiet || git commit -m "Update README with game cover link status"
git push