make listing #4
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: make listing | |
on: workflow_dispatch | |
jobs: | |
make_listing: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8.15' | |
- run: sudo apt-get install libyaml-dev | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install git+https://github.com/TwitchPlaysPokemon/musiccat.git | |
- name: Build listing | |
run: python -m musiccat listing listing.json | |
- name: Commit listing | |
run: | | |
git config --global user.name 'Listing Generator' | |
git config --global user.email '[email protected]' | |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY | |
git checkout "${GITHUB_REF:11}" | |
git commit -am "Updated automatic listing" | |
git push |