-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.yaml
37 lines (36 loc) · 1.14 KB
/
main.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
# This was used as a GitHub Action to update the election data daily
# moving this into the main directory for reference
# name: 'Update Election Datasets'
# on:
# schedule:
# - cron: "0 10 * * *"
# jobs:
# update_election:
# runs-on: macos-latest
# steps:
# - name: Check out repository
# uses: actions/checkout@v4
# with:
# token: ${{ secrets.SECRETS }}
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: '3.11'
# cache: 'pip'
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt
# - name: Run data pipeline script
# run: |
# python run_daily_pipeline.py
# shell: bash
# - name: Update resources
# uses: test-room-7/action-update-file@v1
# with:
# # Include all csv files from the `data` directory
# file-path: |
# data/*.csv
# figures/*.png
# commit-msg: Daily election update
# github-token: ${{ secrets.SECRETS }}