Update Todoist Gist #58
This file contains hidden or 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: Update Todoist Gist | |
| on: | |
| push: | |
| branches: | |
| - main | |
| schedule: | |
| - cron: '0 * * * *' # every hour | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| id-token: write | |
| jobs: | |
| update-gist: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Cache node modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: node_modules | |
| key: node_modules-${{ hashFiles('package-lock.json') }} | |
| restore-keys: node_modules- | |
| - run: npm install | |
| - name: Run script | |
| run: node update-gist.js | |
| env: | |
| TODOIST_API_KEY: ${{ secrets.TODOIST_API_KEY }} | |
| GIST_ID: ${{ secrets.GIST_ID }} | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} |