Skip to content

Commit b811093

Browse files
authored
Merge pull request #34 from PathwayCommons/iss32_cron-action
Cron GitHub action
2 parents da02f9b + d3105cc commit b811093

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

.github/workflows/cron.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +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 * * *'
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
data:
13+
runs-on: ubuntu-latest
14+
container: node:16
15+
environment: cron
16+
17+
steps:
18+
- name: Check out repository code
19+
uses: actions/checkout@v3
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Run tweet script
25+
run: npm run data

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"fix": "eslint ./src --fix",
2828
"lint": "eslint ./src",
2929
"clean": "rimraf dist src/dashboard/build",
30-
"ci": "run-s test lint"
30+
"data": "echo \"Hello World!\""
3131
},
3232
"author": "Pathway Commons",
3333
"license": "MIT",

0 commit comments

Comments
 (0)