Skip to content

Update Axelar, Cronos, and Dydx registry versions #80

Update Axelar, Cronos, and Dydx registry versions

Update Axelar, Cronos, and Dydx registry versions #80

name: Merge Source configs and write update Source-Registry
on:
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
- edited
paths:
- '**/*.yml'
jobs:
validate_registry:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Install required Python packages
run: pip install -r .github/requirements.txt
- name: Merge Source configs and write Source-Registry
run: python .github/validate_registry.py
build_registry:
runs-on: ubuntu-latest
permissions:
contents: write
needs: validate_registry
steps:
- name: Check out the code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install required Python packages
run: pip install -r .github/requirements.txt
- name: Merge Source configs and write Source-Registry
run: |
python .github/build_registry.py .github/registry.yml
git config --local user.name "kyve-network"
git config --local user.email "[email protected]"
git add .
if [ -z "$(git status --porcelain)" ]; then
echo "No changes to commit"
exit 0
fi
git commit -m "🎉 Update registry.yml"
git push origin HEAD:${{ github.head_ref }}