feat: Add SubId and generate addresses #12
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: Check Asset updates | |
on: | |
pull_request: | |
paths: | |
- 'assets.json' | |
- 'assets.gen.json' | |
- 'ASSETS.md' | |
jobs: | |
check_generated_files: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
cache: 'pip' | |
- name: Install Python requirements | |
run: pip install -r requirements.txt | |
- name: Regenerate asset JSON and markdown | |
run: | | |
python create_assets_json.py | |
python create_assets_md.py | |
- name: Verify Changed files | |
uses: tj-actions/verify-changed-files@v20 | |
id: verify-changed-files | |
with: | |
files: | | |
assets.gen.json | |
ASSETS.md | |
- name: Check that generated files are up-to-date | |
if: steps.verify-changed-files.outputs.files_changed == 'true' | |
env: | |
CHANGED_FILES: ${{ steps.verify-changed-files.outputs.changed_files }} | |
run: | | |
echo "Changed files: $CHANGED_FILES" | |
echo "Generated files are not up-to-date, run create_assets_json.py and create_assets_md.py" | |
exit 1 |