Skip to content

Commit 96fdcba

Browse files
committed
upload to s3 working, reenabling cron schedule
1 parent 79be875 commit 96fdcba

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/script.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
name: Schedule Node.js LTS download
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
8-
#on:
9-
# schedule:
10-
# - cron: '0 * * * *' # Runs every hour
4+
schedule:
5+
- cron: '0 * * * *' # Runs every hour
116

127
jobs:
138
run-node-script:
@@ -42,10 +37,11 @@ jobs:
4237
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4338

4439
- name: Download Node
45-
# if: env.new_version != ''
40+
if: env.new_version != ''
4641
run: node src/download.js
4742

4843
- name: Upload Node To S3
44+
if: env.new_version != ''
4945
uses: keithweaver/[email protected]
5046
with:
5147
command: cp

0 commit comments

Comments
 (0)