From 04449e7525679ec0583f993e7aebc3d9457e81cb Mon Sep 17 00:00:00 2001 From: Tarasov Aleksandr <55220741+arabianq@users.noreply.github.com> Date: Sat, 25 Apr 2026 19:28:48 +0300 Subject: [PATCH] fix(ci): update workflow inputs for tag and build branch selection (#80) --- .github/workflows/flatter.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/flatter.yml b/.github/workflows/flatter.yml index b2aa369..8aa988a 100644 --- a/.github/workflows/flatter.yml +++ b/.github/workflows/flatter.yml @@ -6,6 +6,19 @@ on: release: types: [ published ] workflow_dispatch: + inputs: + tag_name: + description: "Какой тег собираем? (оставь пустым для сборки из текущей ветки)" + required: false + type: string + build_branch: + description: "В какую ветку Flatpak собирать?" + required: true + type: choice + options: + - stable + - nightly + default: "stable" jobs: flatter: @@ -20,6 +33,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + ref: ${{ inputs.tag_name || github.ref }} - name: Setup GPG id: gpg @@ -33,12 +48,15 @@ jobs: run: | if [ "${{ github.event_name }}" == "release" ]; then echo "branch=stable" >> $GITHUB_OUTPUT + elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then + echo "branch=${{ inputs.build_branch }}" >> $GITHUB_OUTPUT else echo "branch=nightly" >> $GITHUB_OUTPUT fi - name: Modify Manifest run: | + echo "branch: ${{ steps.set_branch.outputs.branch }}" >> packages/flatpak/ru.arabianq.pwsp.yaml echo "default-branch: ${{ steps.set_branch.outputs.branch }}" >> packages/flatpak/ru.arabianq.pwsp.yaml - name: Install SDK Extensions