make it possible to use different app.spec from workflow
This commit is contained in:
parent
d538d94216
commit
23f599d5d0
1 changed files with 19 additions and 0 deletions
19
.github/workflows/native-build.yml
vendored
19
.github/workflows/native-build.yml
vendored
|
|
@ -6,6 +6,10 @@ on:
|
||||||
tag:
|
tag:
|
||||||
required: true
|
required: true
|
||||||
description: "Ref to build from (e.g. v1.0.0)"
|
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:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "v*"
|
- "v*"
|
||||||
|
|
@ -42,6 +46,21 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ env.TAG_NAME }}
|
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
|
- name: Cache Python venv
|
||||||
id: cache-python
|
id: cache-python
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue