telegram recommend yotas issues #230
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: telegram recommend yotas issues | |
on: | |
schedule: | |
- cron: "30 10 * * 5,6,0" | |
jobs: | |
build: | |
defaults: | |
run: | |
working-directory: ./.github/workflows/recommend_yotas_issues | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: get yotas issues | |
shell: bash | |
run: | | |
GITHUB_TOKEN=${{ secrets.BOT_GITHUB_TOKEN }} ./get_yotas_issues.sh > yotas_issues_message | |
- name: send custom message with to osscameroon channel | |
uses: appleboy/[email protected] | |
with: | |
to: ${{ secrets.TELEGRAM_OSSCAMEROON_CHANNEL_ID }} | |
token: ${{ secrets.TELEGRAM_BOT_TOKEN }} | |
message_file: ./.github/workflows/recommend_yotas_issues/yotas_issues_message | |
- name: send custom message with to osscameroon group | |
uses: appleboy/[email protected] | |
with: | |
to: ${{ secrets.TELEGRAM_OSSCAMEROON_GROUP_ID }} | |
token: ${{ secrets.TELEGRAM_BOT_TOKEN }} | |
message_file: ./.github/workflows/recommend_yotas_issues/yotas_issues_message |