-
Notifications
You must be signed in to change notification settings - Fork 5
38 lines (32 loc) · 1.01 KB
/
build_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
name: Merge Source configs and write Source-Registry
on:
pull_request:
branches:
- main
types:
- closed
paths:
- '**.yml'
jobs:
build_registry:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.PAT_TOKEN }}
- name: Install required Python packages
run: pip install -r .github/requirements.txt
working-directory: ${{ github.workspace }}
- name: Merge Source configs and write Source-Registry
run: python .github/build_registry.py .github/registry.yml
working-directory: ${{ github.workspace }}
- name: Commit and push built registry
run: |
git config --local user.email "[email protected]"
git config --local user.name "kyve-network"
git add .github/registry.yml
git commit -m "🎉 Update registry.yml"
git push
working-directory: ${{ github.workspace }}