Osmosis versions update #86
Workflow file for this run
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: 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 }} |