-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 941 Bytes
/
clock.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
name: Scraper
on:
schedule:
# run on the same day as the changes were made
- cron: '0 23 * * *'
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.8'
cache: 'pip'
- name: pull kek data
run: |
pip install -r requirements.txt
python update.py
- name: git config user
run: |
curl -s -u ${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }} https://api.github.com/users/${GITHUB_ACTOR} > ${GITHUB_ACTOR}.json
git config user.email "$(cat ${GITHUB_ACTOR}.json | jq -r .email)"
git config user.name "$(cat ${GITHUB_ACTOR}.json | jq -r .name)"
- name: commit changes
run: |
git add docs/data
git commit -m"commit changes `date -Iseconds`" || true
- name: push changes
run: |
git push