fix(ci): update workflow inputs for tag and build branch selection (#80)

This commit is contained in:
Tarasov Aleksandr
2026-04-25 19:28:48 +03:00
committed by GitHub
parent 9f50809a99
commit 04449e7525
+18
View File
@@ -6,6 +6,19 @@ on:
release: release:
types: [ published ] types: [ published ]
workflow_dispatch: workflow_dispatch:
inputs:
tag_name:
description: "Какой тег собираем? (оставь пустым для сборки из текущей ветки)"
required: false
type: string
build_branch:
description: "В какую ветку Flatpak собирать?"
required: true
type: choice
options:
- stable
- nightly
default: "stable"
jobs: jobs:
flatter: flatter:
@@ -20,6 +33,8 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
ref: ${{ inputs.tag_name || github.ref }}
- name: Setup GPG - name: Setup GPG
id: gpg id: gpg
@@ -33,12 +48,15 @@ jobs:
run: | run: |
if [ "${{ github.event_name }}" == "release" ]; then if [ "${{ github.event_name }}" == "release" ]; then
echo "branch=stable" >> $GITHUB_OUTPUT echo "branch=stable" >> $GITHUB_OUTPUT
elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
echo "branch=${{ inputs.build_branch }}" >> $GITHUB_OUTPUT
else else
echo "branch=nightly" >> $GITHUB_OUTPUT echo "branch=nightly" >> $GITHUB_OUTPUT
fi fi
- name: Modify Manifest - name: Modify Manifest
run: | 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 echo "default-branch: ${{ steps.set_branch.outputs.branch }}" >> packages/flatpak/ru.arabianq.pwsp.yaml
- name: Install SDK Extensions - name: Install SDK Extensions