-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (39 loc) · 1.08 KB
/
update-datalib.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
name: UpdateDL
on:
push:
branches: ["main"]
workflow_dispatch:
schedule:
# every day at 5&19 UTC
- cron: '0 14 * * 1'
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: fetch jasp-desktop
uses: actions/checkout@v4
with:
repository: jasp-stats/jasp-desktop
ref: development
path: jasp-desktop
- name: checkout main
uses: actions/checkout@v4
with:
path: datalib
- name: Run script
run: |
python datalib/.scripts/dataGatherScript.py jasp-desktop datalib
- name: GIT add,commit and push all changed files to main
continue-on-error: true
env:
CI_COMMIT_MESSAGE: Automated push
CI_COMMIT_AUTHOR: Actions
run: |
cd datalib
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "[email protected]"
git add -A
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
git push