registry #579
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: 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 |