Skip to content

fetch reviews

fetch reviews #735

Workflow file for this run

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