-
Notifications
You must be signed in to change notification settings - Fork 58
51 lines (39 loc) · 1.27 KB
/
update_podcasts.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
50
51
name: Update_Podcasts_Data
on:
schedule:
- cron: '0 5-20/4 * * *'
##on:
## push:
## branches: [ dev ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.101
- name: ls
run: ls
- name: Set chmod to Unchase.HtmlTagsUpdater
run: chmod 777 ./utils/Unchase.HtmlTagsUpdater
- name: Run Unchase.HtmlTagsUpdater (with Telegram Bot)
env:
TG_KEY: ${{ secrets.TgKey }}
TG_CHANNEL_ID: ${{ secrets.TgChannelId }}
run: ./utils/Unchase.HtmlTagsUpdater -f "Podcasts.md" -t "iTunesPodcast" -a "$TG_KEY" -c "$TG_CHANNEL_ID" -i "150"
- name: Show Podcasts.md
run: cat Podcasts.md
- name: Git status
run: /usr/bin/git status
- name: Git set author (email)
run: /usr/bin/git config --global user.name "GitHub Action Unchase"
- name: Git set author (email)
run: /usr/bin/git config --global user.email "[email protected]"
- name: Git add
run: /usr/bin/git add Podcasts.md
- name: Git commit
run: /usr/bin/git commit -m "Update podcasts data"
- name: Git push
run: /usr/bin/git push origin master