Move UCoMP.yaml to entries/facilities/UCoMP.yaml #37
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: CI | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
jobs: | |
update_database: | |
name: Check YAML entries and generate JSON database | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- name: Install dependencies | |
run: pip install pyyaml | |
- name: Parse entries into JSON database | |
run: python parse_entries.py | |
- name: Commit JSON database changes | |
if: (github.repository == 'astrofrog/acknowledgment-generator' && github.event_name == 'push' && github.ref == 'refs/heads/gh-pages') | |
run: | | |
git config user.name "Astrobot" | |
git config user.email "tom@chi-squared.org" | |
git add database.json | |
git commit -m "Updated database.json" || true | |
- name: Push JSON database changes | |
if: (github.repository == 'astrofrog/acknowledgment-generator' && github.event_name == 'push' && github.ref == 'refs/heads/gh-pages') | |
uses: ad-m/github-push-action@master |