forked from KITmetricslab/RESPINOW-Hub
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.03 KB
/
get-target.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
name: "get-target"
on:
workflow_dispatch:
schedule:
- cron: "10 9,17 * * 1,5"
jobs:
get-target:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install requirements
run: |
pip install pandas pathlib
- name: Get target
run: |
cd ./code
python ./compute_target.py
- name: Commit files
env:
AUTH: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git remote rm origin
git remote add origin https://${AUTH}@github.com/KITmetricslab/RESPINOW-Hub.git > /dev/null 2>&1
git pull origin main
git add --all
git commit --allow-empty -m "Get target"
- name: Push changes
run: |
git push --quiet --set-upstream origin HEAD:main
echo "pushed to github"