Waifu Generator CI #159
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: Waifu Generator CI | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * THU" | |
jobs: | |
start_scrape: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out this repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install dependencies | |
run : npm install | |
- name: Start scrape data | |
run : npm run start:scrape | |
- name: Commit and push if it changed | |
run: |- | |
git config user.name "satyawikananda" | |
git config user.email "${{ secrets.EMAIL }}" | |
git add -A | |
timestamp=$(date -u) | |
git commit -m "chore(scrape): Update scrape data" || exit 0 | |
git push |