Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/scripts/update_upstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

This script:
1. Fetches the latest release from ethereum/go-ethereum
2. Compares it with the current upstream version in build/dappnode_package-mainnet.json
2. Compares it with the current upstream version in build/dappnode_package.json
3. If a newer version is found:
- Increments the patch version in dappnode_package-mainnet.json
- Updates the upstream version in dappnode_package-mainnet.json
- Updates the image tag in docker-compose-mainnet.yml
- Updates the VERSION build arg in docker-compose-mainnet.yml
- Increments the patch version in dappnode_packagejson
- Updates the upstream version in dappnode_package.json
- Updates the image tag in docker-compose.yml
- Updates the VERSION build arg in docker-compose.yml

Note: Only mainnet files are updated by this script.
"""
Expand Down Expand Up @@ -200,7 +200,7 @@ def main():
sys.exit(1)

# Read current upstream version from mainnet package
mainnet_package_path = build_dir / 'dappnode_package-mainnet.json'
mainnet_package_path = build_dir / 'dappnode_package.json'

if not mainnet_package_path.exists():
print(f"Error: {mainnet_package_path} not found")
Expand Down Expand Up @@ -230,8 +230,8 @@ def main():
print("=" * 60 + "\n")

# Only update mainnet files
mainnet_package = build_dir / 'dappnode_package-mainnet.json'
mainnet_compose = build_dir / 'docker-compose-mainnet.yml'
mainnet_package = build_dir / 'dappnode_package.json'
mainnet_compose = build_dir / 'docker-compose.yml'

if not mainnet_package.exists():
print(f"Error: {mainnet_package} not found")
Expand Down