-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.11 KB
/
fetch.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
42
43
44
45
46
47
48
49
50
51
name: Fetch Cheats
on:
schedule:
- cron: "0 0 * * *"
push:
branches:
- develop
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: develop
- name: Install apt-get utilities
run: sudo apt-get install detox sharutils
- uses: actions/setup-python@v4
with:
python-version: '3.8'
cache: 'pip'
cache-dependency-path: .github/requirements.txt
- run: pip install -r .github/requirements.txt
- name: Download Cheats
run: ./.github/download_cheats.py .
- name: Validate Cheats
run: |
set -euo pipefail
FILES=$(find . -type f | wc -l)
echo "FILES: ${FILES}"
if (( ${FILES} < 10000 )) ; then
echo "Not enough files!"
exit 1
fi
- name: Push Orphan Main
run: |
set -euo pipefail
git config --global user.email "[email protected]"
git config --global user.name "The CI/CD Bot"
./.github/push_orphan_main.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}