Github Sosad Checkin #522
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
# Change this to re-enable the workflow | |
name: Github Sosad Checkin | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: "0 1 * * *" | |
workflow_dispatch: # enable manual | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
#if: github.event.repository.owner.id == github.event.sender.id | |
# https://p3terx.com/archives/github-actions-manual-trigger.html | |
steps: | |
- name: Checkout codes | |
uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
- name: Install dependencies | |
run: npm install | |
- run: node index.js | |
env: | |
botToken: ${{ secrets.botToken }} | |
chatID: ${{ secrets.chatID }} | |
sosad_cookie: ${{ secrets.sosad_cookie }} |