Create munge_data.yml
Added GitHub action to munge CSVs into a single dataset for Vega-lite
This commit is contained in:
parent
51b88b079a
commit
cd28f9f415
|
@ -0,0 +1,39 @@
|
|||
# This is a basic workflow to help you get started with Actions
|
||||
|
||||
name: munge_csv
|
||||
|
||||
# Controls when the action will run. Triggers the workflow on push or pull request
|
||||
# events but only for the main branch
|
||||
on:
|
||||
# Trigger the workflow on push or pull request,
|
||||
# but only for the main branch
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
# Also trigger on page_build, as well as release created events
|
||||
page_build:
|
||||
release:
|
||||
types: # This configuration does not affect the page_build event above
|
||||
- created
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
# This workflow contains a single job called "build"
|
||||
build:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
- name: checkout repo content
|
||||
uses: actions/checkout@v2 # checkout the repository content to github runner.
|
||||
- name: setup python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.8 #install the python needed
|
||||
- name: execute python script # run the run.py to get the latest data
|
||||
run: |
|
||||
python munge.py
|
Loading…
Reference in New Issue