-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (42 loc) · 1.21 KB
/
podcast.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Podcast
on:
repository_dispatch:
types: rss-feed-updated
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -yqq git build-essential
- name: Setup ruby
run: |
gem install bundler -v 2.5.6
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