This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
run index.js #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: run index.js | |
on: | |
schedule: | |
- cron: "0 1 * * *" | |
push: | |
branches: | |
- "main" | |
- "releases/**" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v4 # checkout the repository content to github runner | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm ci | |
- run: npm run build | |
- run: npm run execute | |
env: | |
MONGO_URI: ${{ secrets.MONGO_URI }} |