Skip to content

Commit a64b37a

Browse files
committed
Have cron run the (dummy) data npm script.
1 parent 14b6913 commit a64b37a

1 file changed

Lines changed: 20 additions & 28 deletions

File tree

.github/workflows/cron.yml

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,25 @@
1-
# name: Data release cron job
2-
# on:
3-
# schedule:
4-
# # * is a special character in YAML so you have to quote this string
5-
# # (every day at 1am)
6-
# - cron: '0 1 * * *'
1+
name: Data release cron job
2+
on:
3+
schedule:
4+
# * is a special character in YAML so you have to quote this string
5+
# (every day at 1am)
6+
- cron: '0 1 * * *'
77

8-
# permissions:
9-
# contents: read
8+
permissions:
9+
contents: read
1010

11-
# jobs:
12-
# ci:
13-
# runs-on: ubuntu-latest
14-
# container: node:16
15-
# environment: cron
11+
jobs:
12+
data:
13+
runs-on: ubuntu-latest
14+
container: node:16
15+
environment: cron
1616

17-
# steps:
18-
# - name: Check out repository code
19-
# uses: actions/checkout@v3
17+
steps:
18+
- name: Check out repository code
19+
uses: actions/checkout@v3
2020

21-
# - name: Install dependencies
22-
# run: npm install
21+
- name: Install dependencies
22+
run: npm install
2323

24-
# - name: Run tweet script
25-
# run: npm start
26-
# env:
27-
# TIME_SPAN: ${{ vars.TIME_SPAN }}
28-
# PACKAGES: ${{ vars.PACKAGES }}
29-
# TWEET: ${{ vars.TWEET }}
30-
# CONSUMER_KEY: ${{ secrets.CONSUMER_KEY }}
31-
# CONSUMER_SECRET: ${{ secrets.CONSUMER_SECRET }}
32-
# ACCESS_TOKEN_KEY: ${{ secrets.ACCESS_TOKEN_KEY }}
33-
# ACCESS_TOKEN_SECRET: ${{ secrets.ACCESS_TOKEN_SECRET }}
24+
- name: Run tweet script
25+
run: npm run data

0 commit comments

Comments
 (0)