Update Student A render #13
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: Fetch Assets | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
fetch_songs: | |
runs-on: windows-latest | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the | |
# added or changed files to the repository. | |
contents: write | |
steps: | |
- name: Disable line-ending conversion | |
run: | | |
git config --global core.autocrlf false | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: Install Dependencies | |
run: | | |
pip install -r requirements.txt | |
- name: Execute fetch_assets.py | |
run: python fetch_assets.py | |
- name: Commit changes | |
run: | | |
git config --global user.name "github-actions" | |
git config --global user.email "actions@github.com" | |
git add . | |
git commit -m "Update assets info" || echo "No changes to commit" | |
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} HEAD:${{ github.ref }} |