Skip to content

Update The Greatest Generation Metadata #114

Update The Greatest Generation Metadata

Update The Greatest Generation Metadata #114

Workflow file for this run

# Name: update-tgg.yaml
# Author: Mathew Fleisch <mathew.fleisch@gmail.com>
# Description: This action will iterate through the rss feed of the TGG podcast
# and attempt to download metadata from google, memoryalpha and maximumfun
# and update the metadata saved in this repo data/episodes/*.json
name: Update The Greatest Generation Metadata
on:
# trigger Thursdays at 2:15pm PT (21:15UTC)
schedule:
- cron: '15 21 * * 4'
repository_dispatch:
types:
- update-shows
jobs:
build:
name: Update The Greatest Generation Metadata
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v3
with:
token: ${{ secrets.GIT_TOKEN }}
fetch-depth: 0
-
name: Install semver with asdf
uses: asdf-vm/actions/install@v1
with:
tool_versions: |
semver 3.3.0
-
name: Update The Greatest Generation Metadata
run: |
pip install --upgrade pip
make setup
echo "${{ secrets.ENVFILE }}" | base64 -d > .env \
&& python ./utils/generate_show_json.py enterprise -p --next-episode \
&& rm -rf .env
rm -rf .env || true
git config user.name github-actions
git config user.email github-actions@github.com
git diff
git add data/episodes/*.json
if [[ $(git status --porcelain) ]]; then
# metadata was updated, bump/patch the semver in the helm chart and push to main
make helm-bump-patch
git add charts/agimus/Chart.yaml
git commit -m "Update The Greatest Generation Metadata - $(date)"
git push origin main
else
echo "There were no updates found for this show's metadata."
fi