rss-feed-updated #126
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: Podcast | |
on: | |
repository_dispatch: | |
types: rss-feed-updated | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '2.7' | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -yqq git build-essential | |
- name: Setup ruby | |
run: | | |
gem install bundler | |
bundle install --jobs 4 --retry 3 | |
- name: Update podcast data files | |
run: | | |
bundle exec ruby _scripts/podcasts.rb | |
- name: Commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "SmartLogic Podcasts" | |
git add _data/elixir_wizards_* | |
git add podcast/elixir-wizards/transcripts | |
git commit -m "Update podcast files" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: main | |
- name: Repository Dispatch | |
uses: peter-evans/repository-dispatch@v1 | |
with: | |
token: ${{ secrets.REPO_ACCESS_TOKEN }} | |
event-type: rss-data-updated |