make it possible to use different app.spec from workflow

This commit is contained in:
arabcoders 2025-08-26 01:19:12 +03:00
parent d538d94216
commit 23f599d5d0

View file

@ -6,6 +6,10 @@ on:
tag:
required: true
description: "Ref to build from (e.g. v1.0.0)"
useWorkflowSpec:
type: boolean
default: false
description: "Use app.spec from workflow branch instead of tag"
push:
tags:
- "v*"
@ -42,6 +46,21 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ env.TAG_NAME }}
- name: Overwrite app.spec from workflow branch
if: github.event.inputs.useWorkflowSpec == true
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
sparse-checkout: |
app.spec
sparse-checkout-cone-mode: false
path: temp-spec
- name: Replace app.spec with version from workflow branch
if: github.event.inputs.useWorkflowSpec == true
run: cp temp-spec/app.spec ./app.spec
- name: Cache Python venv
id: cache-python
uses: actions/cache@v4