Get Jam Tracks - FN Content #16228
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: Get Jam Tracks - FN Content | |
on: | |
schedule: | |
- cron: '*/7 * * * *' # we goin full on with this one | |
workflow_dispatch: | |
permissions: write-all | |
jobs: | |
fetch_api: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 1 # speed up checkout process | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
python-version: "3.12" | |
- name: Install dependencies | |
run: pip install requests | |
- name: Save Jam Data | |
run: python festival.py | |
env: | |
WKFL: ${{ secrets.TRACKWEBHOOK }} | |
UTP: ${{ secrets.USERTOPING }} | |
- name: Commit and push artifact | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Actions" | |
git pull | |
git add festival/* | |
git commit -m "Update spark tracks" || echo 'nothing' | |
git push || echo 'nothing' |