Changeset Watch #959
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: Changeset Watch | |
on: | |
schedule: | |
- cron: '0 16 * * *' # at 4am (it's in UTC) | |
workflow_dispatch: | |
jobs: | |
changesetWatch: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- name: ⏬ Checkout code | |
uses: actions/checkout@v3 | |
- name: 🔢 Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: ⏬ Install | |
run: | | |
npm install | |
- name: 🔎 Run ChangesetWatch script | |
run: | | |
mkdir -p data | |
npm run changesetWatch | |
env: | |
GOOGLE_REFRESH_TOKEN: ${{ secrets.GOOGLE_REFRESH_TOKEN }} | |
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }} | |
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }} |