Gen2 rolls #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: update-data | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
#schedule: | |
# - cron: "0 0 1 * *" # Runs at 00:00 UTC on the first of every month | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v3 | |
- name: setup python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.9 | |
- name: install pipenv | |
run: | | |
pip install --user pipenv | |
USER_BASE=`python -m site --user-base` | |
export PATH=$USER_BASE/bin:$PATH | |
- name: install Python dependencies | |
run: pipenv install | |
- name: clone roll-wrangler repo | |
run: | | |
git clone https://github.com/pianoroll/roll-wrangler.git | |
- name: move roll-wrangler files to expected locations | |
run: | | |
mv ./roll-wrangler/midi/note/*.mid midi/note/. | |
mv ./roll-wrangler/midi/exp/*.mid midi/exp/. | |
mv ./roll-wrangler/txt/*.txt input/txt/. | |
- name: run the data generation script | |
run: pipenv run python build-pianolatron-files.py | |
- name: commit the new/updated output files to the repo | |
uses: EndBug/[email protected] | |
with: | |
add: '["output/json/*.json","output/midi/exp/*.mod","output/midi/note/*.mid","midi/exp/*.mid","midi/note/*.mid","output/catalog.json"]' | |
message: "Automatic update" | |
author_name: GitHub Actions | |
author_email: [email protected] |