From f0a033290efe4ed85f48222df6da258a675114fb Mon Sep 17 00:00:00 2001 From: Leonardo Berbert Date: Thu, 9 Apr 2026 22:18:15 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20fix-app-version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/aur.yml | 11 +++++++--- .github/workflows/version-consistency.yml | 25 +++++++++++++++++++++++ 2 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/version-consistency.yml diff --git a/.github/workflows/aur.yml b/.github/workflows/aur.yml index f0e78aa..f411ef2 100644 --- a/.github/workflows/aur.yml +++ b/.github/workflows/aur.yml @@ -1,9 +1,11 @@ name: Publish AUR on: - push: - branches: - - main + workflow_run: + workflows: + - Sync Version + types: + - completed workflow_dispatch: concurrency: @@ -12,6 +14,7 @@ concurrency: jobs: aur: + if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' runs-on: ubuntu-latest env: FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" @@ -20,11 +23,13 @@ jobs: - name: Checkout uses: actions/checkout@v5 with: + ref: ${{ github.event_name == 'workflow_dispatch' && github.ref || github.event.workflow_run.head_branch }} fetch-depth: 0 - name: Determine version from app config id: version run: | + python3 scripts/sync_version.py --check PKGVER=$(python3 scripts/sync_version.py --print-current) echo "pkgver=$PKGVER" >> $GITHUB_OUTPUT diff --git a/.github/workflows/version-consistency.yml b/.github/workflows/version-consistency.yml new file mode 100644 index 0000000..fa6c528 --- /dev/null +++ b/.github/workflows/version-consistency.yml @@ -0,0 +1,25 @@ +name: Version Consistency + +on: + push: + branches: + - main + pull_request: + workflow_dispatch: + +jobs: + check-version: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v5 + + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: "3.x" + + - name: Verify version alignment + run: | + python3 scripts/sync_version.py --check