Skip to content

Commit 589b8dd

Browse files
committed
hack: allow repo checkout override
Needed when called by spins inside different organizations.
1 parent 35749fc commit 589b8dd

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ on:
1313
required: false
1414
default: true
1515
type: boolean
16+
infix_repo:
17+
description: 'Repo to checkout (for spin overrides)'
18+
required: false
19+
default: kernelkit/infix
20+
type: string
21+
1622

1723
workflow_call:
1824
inputs:
@@ -26,9 +32,14 @@ on:
2632
required: false
2733
type: boolean
2834
default: true
35+
infix_repo:
36+
required: false
37+
type: string
38+
default: kernelkit/infix
2939

3040
env:
3141
MINIMAL: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.minimal || inputs.minimal }}
42+
INFIX_REPO: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.infix_repo || inputs.infix_repo }}
3243

3344

3445
jobs:
@@ -47,8 +58,11 @@ jobs:
4758
rm -rf ./.??* || true
4859
ls -la ./
4960
50-
- uses: actions/checkout@v4
61+
- name: Checkout infix repo
62+
uses: actions/checkout@v4
5163
with:
64+
repository: ${{ env.INFIX_REPO }}
65+
ref: ${{ github.ref }}
5266
clean: true
5367
fetch-depth: 0
5468
submodules: recursive

0 commit comments

Comments
 (0)