File tree Expand file tree Collapse file tree 1 file changed +18
-11
lines changed Expand file tree Collapse file tree 1 file changed +18
-11
lines changed Original file line number Diff line number Diff line change 11name : Update Todoist Gist
22
33on :
4+ push :
5+ branches :
6+ - main
47 schedule :
58 - cron : ' 0 * * * *' # every hour
69 workflow_dispatch :
710
11+ permissions :
12+ contents : write
13+ pull-requests : write
14+ id-token : write
15+
816jobs :
917 update-gist :
1018 runs-on : ubuntu-latest
11-
1219 steps :
13- - name : Checkout repo
14- uses : actions/checkout@v3
15-
16- - name : Set up Node.js
17- uses : actions/setup-node@v3
20+ - uses : actions/checkout@v4
21+ - uses : actions/setup-node@v4
1822 with :
19- node-version : ' 20'
20-
21- - name : Install dependencies
22- run : npm install
23-
23+ node-version : 20
24+ - name : Cache node modules
25+ uses : actions/cache@v4
26+ with :
27+ path : node_modules
28+ key : node_modules-${{ hashFiles('package-lock.json') }}
29+ restore-keys : node_modules-
30+ - run : npm install
2431 - name : Run script
2532 run : node update-gist.js
2633 env :
You can’t perform that action at this time.
0 commit comments