Fetch data #116802
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
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 | |