Skip to content

Commit

Permalink
ci: generate signet files too
Browse files Browse the repository at this point in the history
  • Loading branch information
0xB10C committed Mar 6, 2023
1 parent fabc2a8 commit 93e87de
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,23 @@ jobs:
run: |
git config --local user.email "[email protected]"
git config --local user.name "bitcoin-data"
- name: Generate files
- name: Generate mainnet files
run: |
python3 contrib/generate-json-pool-list.py new-$FILENAME_POOL_LIST
python3 contrib/generate-old-pools-json.py new-$FILENAME_POOLS_JSON
- name: Generate signet files
run: |
python3 contrib/generate-json-pool-list.py new-signet-$FILENAME_POOL_LIST signet-pools/
python3 contrib/generate-old-pools-json.py new-signet-$FILENAME_POOLS_JSON signet-pools/
- name: Checkout 'generated' branch
run:
git checkout generated
- name: Overwrite old files
run: |
mv new-$FILENAME_POOL_LIST $FILENAME_POOL_LIST
mv new-$FILENAME_POOLS_JSON $FILENAME_POOLS_JSON
mv new-$FILENAME_POOL_LIST $FILENAME_POOL_LIST
mv new-$FILENAME_POOLS_JSON $FILENAME_POOLS_JSON
mv new-signet-$FILENAME_POOL_LIST signet-$FILENAME_POOL_LIST
mv new-signet-$FILENAME_POOLS_JSON signet-$FILENAME_POOLS_JSON
- name: Commit changes
run: |
git add *.json
Expand Down

0 comments on commit 93e87de

Please sign in to comment.