File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 63
63
description : Git version of https://github.com/stackhpc/stackhpc-cloud-tests to use for testing
64
64
type : string
65
65
default : main
66
+ called_from_external :
67
+ description : Set if using the workflow from an external repository
68
+ type : boolean
69
+ default : false
66
70
repository :
67
71
description : SKC repository to checkout (convenience for CI)
68
72
type : string
69
73
default : ${{ github.repository }}
74
+ external_ref_override :
75
+ description : Git ref to checkout, only used if called_from_external is true
76
+ type : string
77
+ default : ${{ github.ref }}
70
78
secrets :
71
79
KAYOBE_VAULT_PASSWORD :
72
80
required : true
@@ -103,7 +111,7 @@ jobs:
103
111
uses : actions/checkout@v4
104
112
with :
105
113
repository : ${{ inputs.repository }}
106
- ref : ${{ inputs.upgrade && env.PREVIOUS_BRANCH || github.ref }}
114
+ ref : ${{ inputs.upgrade && env.PREVIOUS_BRANCH || inputs.called_from_external && inputs.external_ref_override || github.ref }}
107
115
submodules : true
108
116
109
117
- name : Output Kayobe image
You can’t perform that action at this time.
0 commit comments