-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (39 loc) · 1.14 KB
/
validate_data.yml
File metadata and controls
46 lines (39 loc) · 1.14 KB
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: Validate Data
on:
workflow_dispatch:
workflow_run:
workflows: ["Update Data"]
types:
- completed
jobs:
run_script:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: update-data
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r workflow_scripts/requirements.txt
- name: "Merge csvs"
run: |
python workflow_scripts/csv_merger.py
- name: "Start Validation"
run: |
python workflow_scripts/data_validate.py
- name: Commit and push changes
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
DATE=$(date +"%Y-%m-%d")
git add .
git commit -m "Check Data by GitHub Actions on $DATE"
git push
env:
GITHUB_TOKEN: ${{ secrets.UPDATE_SECRET }}