Skip to content

Commit edeb9f2

Browse files
committed
.github: pass (Infix) name as workflow_call input
Signed-off-by: Richard Alpe <richard@bit42.se>
1 parent 350f2dd commit edeb9f2

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Infix
1+
name: Build
22

33
on:
44
workflow_dispatch:
@@ -19,9 +19,12 @@ on:
1919
target:
2020
required: true
2121
type: string
22+
name:
23+
required: true
24+
type: string
2225
jobs:
2326
build:
24-
name: Build Infix ${{ inputs.target }}
27+
name: Build ${{ inputs.name }} ${{ inputs.target }}
2528
runs-on: [ self-hosted, latest ]
2629
strategy:
2730
fail-fast: false
@@ -70,8 +73,9 @@ jobs:
7073
fi
7174
fi
7275
target=${{ inputs.target }}
73-
echo "dir=infix-$target" >> $GITHUB_OUTPUT
74-
echo "tgz=infix-$target.tar.gz" >> $GITHUB_OUTPUT
76+
name=${{ inputs.name }}
77+
echo "dir=${name}-${target}" >> $GITHUB_OUTPUT
78+
echo "tgz=${name}-${target}.tar.gz" >> $GITHUB_OUTPUT
7579
echo "flv=$flavor" >> $GITHUB_OUTPUT
7680
echo "Building target ${target}${flavor}_defconfig"
7781

.github/workflows/trigger.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ jobs:
1414
uses: ./.github/workflows/build.yml
1515
with:
1616
target: x86_64
17+
name: Infix
1718

1819
build-aarch64:
1920
uses: ./.github/workflows/build.yml
2021
with:
2122
target: aarch64
23+
name: Infix
2224

2325
test-run-x86_64:
2426
needs: build-x86_64

0 commit comments

Comments
 (0)