Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/generate-registry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Generate registry

on:
push:
branches:
- main
paths:
- "services/**"
- "README.md"
- "scripts/generate_registry.py"
workflow_dispatch:

permissions:
contents: write

jobs:
generate:
if: github.actor != 'github-actions[bot]'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate registry.json
run: python3 scripts/generate_registry.py --ref "${{ github.ref_name }}"
- name: Commit registry.json
run: |
if git diff --quiet; then
echo "No registry changes"
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add registry.json
git commit -m "chore: update registry.json"
git push
Loading