Publish Podcast Episodes #198
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: Publish Podcast Episodes | |
on: | |
schedule: | |
- cron: '15 5 * * 2' # At 05:15 on Tuesday (UTC) or 6:15am (Winter)/7:15am (Summer) in Vienna but seems that there is a lot of cron traffic, usually it is executed between 7 and 8 | |
workflow_dispatch: | |
jobs: | |
publishing: | |
name: Sync and update podcast episodes | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
python-version-file: 'scripts/.python-version' | |
cache: 'pip' | |
- name: Install python dependencies | |
run: pip install -r scripts/requirements.txt | |
- name: Run make update-content | |
run: make update-content | |
env: | |
SPOTIFY_APP_CLIENT_ID: ${{ secrets.SPOTIFY_APP_CLIENT_ID }} | |
SPOTIFY_APP_CLIENT_SECRET: ${{ secrets.SPOTIFY_APP_CLIENT_SECRET }} | |
- name: Run make update-redirects | |
run: make update-redirects | |
# Commit results back to repository | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
commit_message: Synchronisation of Podcast Episodes and redirects | |
branch: main | |
commit_user_name: Podcast synchronisation workflow bot | |
commit_user_email: [email protected] | |
commit_author: Podcast synchronisation workflow bot <[email protected]> |