From 23f599d5d0b0e91456239220d7704cd495cc2ebe Mon Sep 17 00:00:00 2001 From: arabcoders Date: Tue, 26 Aug 2025 01:19:12 +0300 Subject: [PATCH] make it possible to use different app.spec from workflow --- .github/workflows/native-build.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/native-build.yml b/.github/workflows/native-build.yml index cc94c655..4d470f5d 100644 --- a/.github/workflows/native-build.yml +++ b/.github/workflows/native-build.yml @@ -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