Skip to content

Fetch data

Fetch data #115898

Workflow file for this run

name: Fetch data
on:
workflow_dispatch:
schedule:
- cron: '*/10 * * * *'
env:
AWS_ID: ${{ secrets.AWS_ID }}
AWS_SECRET: ${{ secrets.AWS_SECRET }}
TWITTER_ACCESS_TOKEN_KEY: ${{ secrets.TWITTER_ACCESS_TOKEN_KEY }}
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
jobs:
update_data:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- run: npm install
- run: npm install playwright-chromium
- run: yarn get-data
- run: yarn wait
- run: yarn screenshot-and-tweet
- run: yarn update-timestamp
- uses: stefanzweifel/git-auto-commit-action@v4.14.1
with:
add_options: last-updated.txt