Upload to Turso #14
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: Upload to Turso | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 12 * * MON' | |
jobs: | |
pushAndPull: | |
name: Push and Pull Data | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
uses: ./.github/actions/pnpm-install | |
- name: Push and Pull Data | |
run: npm run db:insert | |
env: | |
TURSO_DATABASE_URL: ${{ secrets.TURSO_DATABASE_URL }} | |
TURSO_AUTH_TOKEN: ${{ secrets.TURSO_AUTH_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }} | |
TRAKT_CLIENT_ID: ${{ secrets.TRAKT_CLIENT_ID }} | |
MASTODON_ACCOUNT_ID: ${{ vars.MASTODON_ACCOUNT_ID }} | |
TRAKT_USERNAME: ${{ vars.TRAKT_USERNAME }} |