Skip to content

Update Todoist Gist #58

Update Todoist Gist

Update Todoist Gist #58

Workflow file for this run

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 }}