fetch reviews #800
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: fetch reviews | |
on: | |
schedule: | |
- cron: '00 12 * * *' | |
workflow_dispatch: | |
jobs: | |
fetch-reviews: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '16.x' | |
- name: Install dependencies | |
run: npm install | |
- name: Fetch reviews | |
run: make run/all | |
- name: Update json responses | |
run: | | |
git config --global user.name 'zebot' | |
git config --global user.email '[email protected]' | |
git add package-lock.json response/* | |
git diff-index --quiet HEAD || git commit -m "chore: updating review responses" | |
git push | |
- name: Tag daily version | |
run: | | |
NEW_TAG_VERSION=v$(date '+%Y%m%d') | |
git config --global user.name 'zebot' | |
git config --global user.email '[email protected]' | |
git tag $NEW_TAG_VERSION | |
git push origin $NEW_TAG_VERSION |