Update_YouTube_Data #3361
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: Update_YouTube_Data | |
on: | |
schedule: | |
- cron: '0 8-23/8 * * *' | |
##on: | |
## push: | |
## branches: [ master ] | |
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 | |
env: | |
API_KEY: ${{ secrets.ApiKey }} | |
TG_KEY: ${{ secrets.TgKey }} | |
TG_CHANNEL_ID: ${{ secrets.TgYoutubeChannelId }} | |
run: ./utils/Unchase.HtmlTagsUpdater -k "$API_KEY" -f "YouTube.md" -t "YouTube" -a "$TG_KEY" -c "$TG_CHANNEL_ID" -n "" -p "0" -i "30" -r "96.113.176.101:1080" | |
- name: Show YouTube.md | |
run: cat YouTube.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 YouTube.md | |
- name: Git commit | |
run: /usr/bin/git commit -m "Update youtube channels data" | |
- name: Git push | |
run: /usr/bin/git push origin master |