-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (38 loc) · 1023 Bytes
/
update-data.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
44
45
46
name: Update data
on:
workflow_dispatch:
repository_dispatch:
types:
- update_data
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '45 9 * * 1-5'
# Cancel any in-flight jobs
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: pipenv
- name: Install dependencies
run: |
pip install pipenv
# pipenv install
pipenv sync
- name: Run DVC pipelines
run: |
pipenv run dvc --version
pipenv run dvc update -R working
pipenv run dvc repro -R scripts
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Data updates
file_pattern: data src scripts working