cron #734
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: cron | |
on: | |
schedule: | |
# Cron job every day at 12:00 | |
# https://crontab.guru/#0_12_*_*_* | |
- cron: '0 0 * * *' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
fetch-depth: 2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
- name: Install | |
run: npm install --no-package-lock | |
- name: Cron | |
run: | | |
git config --global user.email ${{ secrets.GIT_EMAIL }} | |
git config --global user.name ${{ secrets.GIT_USERNAME }} | |
npm run cronjob |