-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.15 KB
/
scrap-experiments.yaml
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
name: Archive Experiments
on:
schedule:
- cron: '0,30 14-23,0-5 * * *'
workflow_dispatch:
jobs:
run-script:
runs-on: ubuntu-latest
steps:
- name: Repo Checkout
uses: actions/checkout@v2
- name: Python Setup
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./src/requirements.txt
- name: Run Collector
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
ARCHIVE_URL: ${{ secrets.ARCHIVE_URL }}
ROLLOUTS_SRC: ${{ secrets.ROLLOUTS_SRC }}
run: |
python ./src/main.py
- name: Update Archive
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
git config --global user.name "Archivizer"
git config --global user.email "[email protected]"
git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git
git add .
git commit -m "Archive Updated" || echo "No changes to commit"
git push