diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml new file mode 100644 index 0000000..4020926 --- /dev/null +++ b/.github/workflows/cron.yml @@ -0,0 +1,25 @@ +name: Data release cron job +on: + schedule: + # * is a special character in YAML so you have to quote this string + # (every day at 1am) + - cron: '0 1 * * *' + +permissions: + contents: read + +jobs: + data: + runs-on: ubuntu-latest + container: node:16 + environment: cron + + steps: + - name: Check out repository code + uses: actions/checkout@v3 + + - name: Install dependencies + run: npm install + + - name: Run tweet script + run: npm run data \ No newline at end of file diff --git a/package.json b/package.json index 443d107..73f87ca 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "fix": "eslint ./src --fix", "lint": "eslint ./src", "clean": "rimraf dist src/dashboard/build", - "ci": "run-s test lint" + "data": "echo \"Hello World!\"" }, "author": "Pathway Commons", "license": "MIT",