Skip to content

twoot on a schedule #8444

twoot on a schedule

twoot on a schedule #8444

Workflow file for this run

name: twoot on a schedule
on:
workflow_dispatch:
schedule:
- cron: "4 1,4,7,10,13,16,19,22 * * *"
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@18ac635edf3d6cd3e88d281bceecc25c4dbc1e73
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm start
env:
NODE_ENV: "production"
MASTODON_TOKEN: ${{ secrets.MASTODON_TOKEN }}
MASTODON_TOKEN_ORIG: ${{ secrets.MASTODON_TOKEN_ORIG }}
TWITTER_API_KEY: ${{ secrets.TWITTER_API_KEY }}
TWITTER_API_SECRET: ${{ secrets.TWITTER_API_SECRET }}
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
TWITTER_ACCESS_SECRET: ${{ secrets.TWITTER_ACCESS_SECRET }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}