telegram github quiz #1933
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 github quiz | |
on: | |
schedule: | |
- cron: "0 */10 * * *" | |
# Each 10hours to have at least 2 quiz questions per day (24h) | |
jobs: | |
build: | |
defaults: | |
run: | |
working-directory: ./.github/workflows/report_quiz | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Send Quiz message to the channel | |
shell: bash | |
run: | | |
./report_quiz.sh ${{ secrets.TELEGRAM_OSSCAMEROON_GROUP_ID }} ${{ secrets.TELEGRAM_BOT_TOKEN }} ${{ secrets.QUIZAPI_KEY }} |