Scheduled Trigger #124
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: 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 | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | |
commit_message: "Update Data" | |
file_pattern: "*.json" |