Skip to content

registry

registry #527

Workflow file for this run

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