-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (32 loc) · 1 KB
/
fetch-reviews.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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