Create fastest.toml for testnet 15 #1273
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: Validate pre-genesis files | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
cancel-in-progress: true | |
env: | |
GIT_LFS_SKIP_SMUDGE: 1 | |
jobs: | |
check: | |
timeout-minutes: 30 | |
runs-on: [ubuntu-22.04] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Check pre-genesis file validity | |
run: | | |
pip3 install toml | |
python3 .github/workflows/scripts/validate.py --folder $CHAIN_ID_FOLDER | |
env: | |
CHAIN_ID_FOLDER: ${{ vars.CHAIN_ID_FOLDER || 'namada-public-testnet-15' }} | |
- name: Check for 'update' in pull request name | |
run: | | |
pr_name=$(echo "${{ github.event.pull_request.title }}" | tr '[:upper:]' '[:lower:]') | |
if [[ "$pr_name" == *"update"* ]]; then | |
changed_files=$(git diff --name-only main HEAD) | |
num_changed_files=$(echo "$changed_files" | wc -l) | |
if [ $num_changed_files -eq 1 ]; then | |
python3 .github/workflows/scripts/validate_previous_genesis.py --folder $CHAIN_ID_FOLDER --filename $changed_files | |
fi | |
fi | |
env: | |
CHAIN_ID_FOLDER: ${{ vars.CHAIN_ID_FOLDER || 'namada-public-testnet-15' }} |