Skip to content

Screenshot and tweet #19866

Screenshot and tweet

Screenshot and tweet #19866

name: Screenshot and tweet
on:
schedule:
- cron: "0 */4 * * *"
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
- uses: FedericoCarboni/setup-ffmpeg@v3
with:
github-token: ${{ github.server_url == 'https://github.com' && github.token || '' }}
- name: Install dependencies
run: yarn install
- name: Create env file
run: |
touch .env
echo SUPABASE_URL=${{ secrets.SUPABASE_URL }} >> .env
echo SUPABASE_TOKEN=${{ secrets.SUPABASE_TOKEN }} >> .env
echo TWITTER_ACCESS_TOKEN=${{ secrets.TWITTER_ACCESS_TOKEN }} >> .env
echo TWITTER_ACCESS_TOKEN_SECRET=${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} >> .env
echo TWITTER_API_KEY=${{ secrets.TWITTER_API_KEY }} >> .env
echo TWITTER_API_SECRET=${{ secrets.TWITTER_API_SECRET }} >> .env
cat .env
- name: Run script
run: yarn start
timeout-minutes: 7