Ingredient price scanner 💰 #6
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: Ingredient price scanner 💰 | |
on: | |
schedule: | |
- cron: '0 0 * * *' # This will run the action every day at midnight | |
workflow_dispatch: # Can also be triggered manually if needed | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: npm ci | |
- name: Run update script | |
run: node ./scripts/price-scanner.js | |
env: | |
DB_URI: ${{ secrets.MONGO_URI }} | |
API_KEY: ${{ secrets.KASSALAPP_API_KEY }} |