websegura/.github/workflows/twitter.yml

29 lines
575 B
YAML
Raw Normal View History

2021-03-06 15:05:56 +01:00
name: analyze
on:
schedule:
- cron: "0 4 * * *"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14"
- name: Install dependencies
run: npm ci
- name: Request Twitter stats
env:
TWITTER_API_KEY: ${{ secrets.TWITTER_API_KEY }}
TWITTER_API_SECRET: ${{ secrets.TWITTER_API_SECRET }}
run: npm run twitter:search