Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
feature(action): Sets up an action for execution.
Browse files Browse the repository at this point in the history
This should be able to execute the node with version defined in nvmrc
Still needs some env variables to be set
  • Loading branch information
ff6347 committed Nov 2, 2020
1 parent 098b04d commit f194a7d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Cronjob

env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
S3_BUCKET: ${{ secrets.S3_BUCKET }}
TSB_SECRET: ${{ secrets.TSB_SECRET }}
on:
workflow_dispatch:
schedule:
# every day at 3
# https://crontab.guru/#0_3_*_*_*
- cron: "0 3 * * *"

jobs:
collect_data:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js from nvm
run: nvm install
- name: install deps
run: npm ci
- name: exec
run: node index.js
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,4 @@ dist

# TernJS port file
.tern-port
.vscode/settings.json
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v12.18.3

0 comments on commit f194a7d

Please sign in to comment.