add script to auto generate release notes (#72) #61
This file contains hidden or 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: Update Node Tables | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
update-tables: | |
runs-on: hashgraph-docs-linux-medium | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 # v3.6.0 | |
with: | |
fetch-depth: 0 # Fetch all history for all branches and tags | |
persist-credentials: true # Do not use the GITHUB_TOKEN for authentication | |
- name: Install dependencies | |
run: sudo apt-get install -y jq | |
- name: Run update script | |
run: | | |
set -eux | |
./update_node_tables.sh | |
- name: Commit changes | |
run: | | |
git config user.name "github-actions[bot]" | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
git add networks/mainnet/mainnet-nodes/README.md | |
git commit -m "chore: update node tables" || echo "No changes to commit" | |
git push |