Skip to content

Commit ce6c532

Browse files
committed
simplified ref variables
1 parent 9f4d527 commit ce6c532

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

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

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,12 @@ on:
6363
description: Git version of https://github.com/stackhpc/stackhpc-cloud-tests to use for testing
6464
type: string
6565
default: main
66-
called_from_external:
67-
description: Set if using the workflow from an external repository
68-
type: boolean
69-
default: false
7066
repository:
71-
description: SKC repository to checkout (convenience for CI)
67+
description: SKC repository to checkout (convenience for external CI)
7268
type: string
7369
default: ${{ github.repository }}
74-
external_ref_override:
75-
description: Git ref to checkout, only used if called_from_external is true
70+
github_ref:
71+
description: Git ref to checkout (convenience for external CI)
7672
type: string
7773
default: ${{ github.ref }}
7874
secrets:
@@ -111,7 +107,7 @@ jobs:
111107
uses: actions/checkout@v4
112108
with:
113109
repository: ${{ inputs.repository }}
114-
ref: ${{ inputs.upgrade && env.PREVIOUS_BRANCH || inputs.called_from_external && inputs.external_ref_override || github.ref }}
110+
ref: ${{ inputs.upgrade && env.PREVIOUS_BRANCH || inputs.github_ref }}
115111
submodules: true
116112

117113
- name: Output Kayobe image
@@ -385,6 +381,7 @@ jobs:
385381
uses: actions/checkout@v4
386382
with:
387383
repository: ${{ inputs.repository }}
384+
ref: ${{ inputs.github_ref }}
388385
submodules: true
389386
clean: false
390387
if: inputs.upgrade

0 commit comments

Comments
 (0)