mirror of
https://github.com/PucelaBits/websegura.git
synced 2024-09-20 00:01:34 +02:00
29 lines
575 B
YAML
29 lines
575 B
YAML
|
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
|