name: Build and push README to main

on:
  push:
    branches: main

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: Set up Python 3.8
      uses: actions/setup-python@v2
      with:
        python-version: 3.8
    - name: Create local changes
      run: |
        python -m pip install --upgrade pip
        pip install pipenv
        pipenv install
        pipenv run python add-metadata.py < template.md > README.md
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    - uses: stefanzweifel/git-auto-commit-action@v4

name: Build and push README to master

on:
  push:
    branches: master

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: Set up Python 3.8
      uses: actions/setup-python@v2
      with:
        python-version: 3.8
    - name: Create local changes
      run: |
        python -m pip install --upgrade pip
        pip install pipenv
        pipenv install
        pipenv run python add-metadata.py < template.md > README.md
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    - uses: stefanzweifel/git-auto-commit-action@v4

Revert "rename master to main, matching new GitHub default"
Revert "rename master to main, matching new GitHub default"

This reverts commit d24d5f546a6ba56a173219e992cbb2ddfa3503f5.

Oops I don't have sufficient access to do this
