Files
pezkuwi-wallet-utils/.github/workflows/sync-nova-base.yml
T
pezkuwichain e5339235ad revert: temporarily restore content to the last Play-Store-compatible state
The live Play Store release (wallet-android 85bde7e, published 2026-06-15)
was built against whatever was on this branch's HEAD at the time - which,
since master had received no commits between 2026-03-02 and this week, was
commit 7a087cf. This week's changes (nova-base sync, Tron config/icons,
balance test fixtures, etc.) are real and wanted, but they've made master
incompatible with that still-live app version, and live users installing
fresh right now get a completely empty tokens list because of it (the app's
chain sync silently fails whole-hog on any single malformed/incompatible
chain entry, leaving new installs with zero locally-cached chains).

This makes master's served content match 7a087cf exactly, stopping the
bleeding for current live users without needing an emergency app release.
None of this week's work is lost - it's all preserved on
pending/post-fix-release and will come back once wallet-android's Tron
send feature is complete and both repos can ship together in one
coordinated release.
2026-07-11 08:23:48 -07:00

107 lines
3.2 KiB
YAML

name: Sync from Nova Base
on:
# Run daily at 6:00 AM UTC
schedule:
- cron: '0 6 * * *'
# Allow manual trigger
workflow_dispatch:
inputs:
force_update:
description: 'Force update even if no changes'
required: false
default: 'false'
type: boolean
jobs:
sync:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Update nova-base submodule to latest
run: |
cd nova-base
git fetch origin master
git checkout origin/master
cd ..
echo "NOVA_COMMIT=$(cd nova-base && git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Check for changes in nova-base
id: check_changes
run: |
if git diff --quiet nova-base; then
echo "has_changes=false" >> $GITHUB_OUTPUT
echo "No changes in nova-base"
else
echo "has_changes=true" >> $GITHUB_OUTPUT
echo "Changes detected in nova-base"
fi
- name: Set up Python
if: steps.check_changes.outputs.has_changes == 'true' || inputs.force_update == 'true'
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Run sync script
if: steps.check_changes.outputs.has_changes == 'true' || inputs.force_update == 'true'
run: |
python scripts/sync_from_nova.py
- name: Check for output changes
if: steps.check_changes.outputs.has_changes == 'true' || inputs.force_update == 'true'
id: check_output
run: |
if git diff --quiet chains/ xcm/ icons/; then
echo "output_changed=false" >> $GITHUB_OUTPUT
echo "No output changes after sync"
else
echo "output_changed=true" >> $GITHUB_OUTPUT
echo "Output files changed"
git diff --stat chains/ xcm/ icons/
fi
- name: Create Pull Request
if: steps.check_output.outputs.output_changed == 'true'
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: sync from nova-base (${{ env.NOVA_COMMIT }})"
title: "🔄 Sync from Nova Base"
body: |
## Automated Nova Base Sync
This PR syncs the latest changes from [nova-utils](https://github.com/novasamatech/nova-utils).
**Nova commit:** `${{ env.NOVA_COMMIT }}`
### Changes included:
- Updated chain configurations
- Updated XCM transfer configs
- Updated icons
---
*This PR was automatically created by the sync workflow.*
branch: sync/nova-base-${{ env.NOVA_COMMIT }}
delete-branch: true
labels: |
automated
sync
dependencies
- name: Auto-merge if tests pass
if: steps.check_output.outputs.output_changed == 'true'
run: |
echo "PR created. Review and merge to apply Nova updates."