Skip to content

Daily Question

Daily Question #1483

name: Daily Question
on:
schedule:
- cron: "*/5 * * * *" # Run at 9:15 AM CET
# Manually trigger the workflow
workflow_dispatch:
env:
API_KEY: ${{ secrets.API_KEY }}
API_SECRET: ${{ secrets.API_SECRET }}
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
ACCESS_SECRET: ${{ secrets.ACCESS_SECRET }}
BEARER_TOKEN: ${{ secrets.BEARER_TOKEN }}
APP_ID: ${{ secrets.APP_ID }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
jobs:
daily-question:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: npm install
- name: Run script
run: node index.js
- name: Commit changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "Actions Bot"
git add -A
git commit -m "index update"
git push