Data Sync #122
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: Data Sync | |
on: | |
schedule: | |
- cron: '0 1 * * *' | |
push: | |
branches: | |
- main | |
jobs: | |
sync: | |
name: Sync | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- uses: pnpm/action-setup@v3 | |
name: Install pnpm | |
with: | |
version: 8 | |
run_install: true | |
- name: Check Data | |
run: pnpm check | |
- name: Get Data | |
run: pnpm dev | |
env: # Or as an environment variable | |
APPTOKEN: ${{ secrets.APPTOKEN }} | |
PERSONALBASETOKEN: ${{ secrets.PERSONALBASETOKEN }} | |
TABLE_ID: ${{ secrets.TABLE_ID }} | |
- name: Update all data | |
uses: EndBug/add-and-commit@v9 | |
with: | |
message: 'chore: update all data' | |
add: data |