Skip to content

Scheduled Trigger

Scheduled Trigger #108

Workflow file for this run

name: Scheduled Trigger
on:
#push:
# branches:
# - master
# paths:
# - 'Data/**.json'
# - 'Datas.json'
# - 'Datas_filter.json'
schedule:
- cron: '0 0 * * 0' #
# This command allows us to run the Action automatically from the Actions tab.
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: NPM Install
run: npm install
- name: Run Code
run: npm run start
- name: Deploy
run: chmod +x deploy.sh && export token=${{ secrets.TOKEN }} username=${{secrets.USERNAME}} mail=${{secrets.MAIL}} name=${{secrets.NAME}} && ./deploy.sh
env:
CI: true
ACCESS_TOKEN: ${{ secrets.TOKEN }}
BASE_BRANCH: master
BRANCH: master