Skip to content

Run seqqc-cron job on a schedule #207

Run seqqc-cron job on a schedule

Run seqqc-cron job on a schedule #207

Workflow file for this run

name: Run seqqc-cron job on a schedule
# Run it 12.05AM UTC every day
on:
schedule:
- cron: "5 0 * * *"
workflow_dispatch:
jobs:
cron:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./cron
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Install dependencies
run: npm install
- name: Build the scripts
run: npm run build
- name: Run script
run: npm run runJob
env:
AWS_BUCKET_NAME: ${{ secrets.AWS_BUCKET_NAME }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_SOURCE_PREFIX: ${{ secrets.AWS_SOURCE_PREFIX }}
NOTIFICATION_EMAIL: ${{ secrets.NOTIFICATION_EMAIL }}
TOWER_URL: ${{ secrets.TOWER_URL }}
TOWER_ACCESS_TOKEN: ${{ secrets.TOWER_ACCESS_TOKEN }}