Skip to content

Commit 1bd8b4a

Browse files
committed
Parameterised repo to checkout
1 parent 824f3a8 commit 1bd8b4a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/stackhpc-all-in-one.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ on:
6363
description: Git version of https://github.com/stackhpc/stackhpc-cloud-tests to use for testing
6464
type: string
6565
default: main
66+
repository:
67+
description: SKC repository to checkout (convenience for CI)
68+
type: string
69+
default: ${{ github.repository }}
6670
secrets:
6771
KAYOBE_VAULT_PASSWORD:
6872
required: true
@@ -98,6 +102,7 @@ jobs:
98102
- name: Checkout ${{ inputs.upgrade && 'previous release' || 'current' }} config
99103
uses: actions/checkout@v4
100104
with:
105+
repository: ${{ inputs.repository }}
101106
ref: ${{ inputs.upgrade && env.PREVIOUS_BRANCH || github.ref }}
102107
submodules: true
103108

@@ -371,6 +376,7 @@ jobs:
371376
- name: Checkout current release config
372377
uses: actions/checkout@v4
373378
with:
379+
repository: ${{ inputs.repository }}
374380
submodules: true
375381
clean: false
376382
if: inputs.upgrade

.github/workflows/stackhpc-build-kayobe-image.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ on:
2929
description: Whether to run the workflow (workaround for required status checks issue)
3030
type: boolean
3131
default: true
32+
repository:
33+
type: string
34+
default: ${{ github.repository }}
3235
outputs:
3336
kayobe_image:
3437
description: Reference of Kayobe image that was built
@@ -53,6 +56,7 @@ jobs:
5356
- name: Checkout kayobe config
5457
uses: actions/checkout@v4
5558
with:
59+
repository: ${{ inputs.repository }}
5660
submodules: true
5761

5862
- name: Log in to the Container registry

0 commit comments

Comments
 (0)