-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (33 loc) · 945 Bytes
/
registry.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
34
35
36
37
38
39
40
41
name: registry
on:
schedule:
- cron: '0 0 * * *'
jobs:
build-registry:
name: 'Build Registry'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Set Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install deps
run: yarn install
# build registry
- run: yarn start
- name: Commit and Push Changes
run: |
if [[ `git status --porcelain` ]]; then
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add ./docs/registry.json
git commit -m "chore: update registry"
git push origin main
fi