Skip to content

Commit 96dd69e

Browse files
committed
.github: add name parameter to dispatch build
Signed-off-by: Richard Alpe <richard@bit42.se>
1 parent c804c31 commit 96dd69e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
description: 'Massive parallel build of each image'
1616
default: true
1717
type: boolean
18+
name:
19+
description: "Name (for spin overrides)"
20+
default: "infix"
21+
type: string
1822
infix_repo:
1923
description: 'Repo to checkout (for spin overrides)'
2024
default: kernelkit/infix
@@ -43,13 +47,14 @@ on:
4347
default: false
4448

4549
env:
50+
NAME: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.name || inputs.name }}
4651
TARGET: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.target || inputs.target }}
4752
FLV: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.flavor || inputs.flavor }}
4853
INFIX_REPO: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.infix_repo || inputs.infix_repo }}
4954

5055
jobs:
5156
build:
52-
name: Build ${{ inputs.name }} ${{ env.TARGET }}
57+
name: Build ${{ env.NAME }} ${{ env.TARGET }}
5358
runs-on: [ self-hosted, latest ]
5459
strategy:
5560
fail-fast: false
@@ -87,7 +92,7 @@ jobs:
8792
fi
8893
8994
target=${{ env.TARGET }}
90-
name=${{ inputs.name }}
95+
name=${{ env.NAME }}
9196
echo "dir=${name}-${target}" >> $GITHUB_OUTPUT
9297
echo "tgz=${name}-${target}.tar.gz" >> $GITHUB_OUTPUT
9398
echo "flv=$FLV" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)