-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1 KB
/
crawl.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
name: AtCoder Submissions Crawler
on:
schedule:
# UTC 19:00 (JST 4:00)
- cron: "0 19 * * *"
workflow_dispatch:
jobs:
crawl:
name: Crawl AtCoder Submissions
runs-on: ubuntu-latest
env:
TZ: Asia/Tokyo
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
ref: main
fetch-depth: 100
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r _src/requirements.txt
- name: Import GPG
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{secrets.GPG_PRIVATE_KEY}}
passphrase: ${{secrets.PASSPHRASE}}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Crawl and Commit
run: python _src/main.py
- name: Push
run: git push