Skip to content

Update UCoMP.yaml

Update UCoMP.yaml #39

Workflow file for this run

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