Skip to content

Commit 0ccdf4b

Browse files
committed
test ep
1 parent e6ff66d commit 0ccdf4b

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ inputs:
77
type: string
88
runs:
99
using: "docker"
10-
image: "docker://ghcr.io/splunk/addonfactory-test-matrix-action/addonfactory-test-matrix-action:v3.1.3"
10+
image: "Dockerfile"

addonfactory_test_matrix_action/main.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def _generate_supported_splunk(args, path):
5050
"build": props["build"],
5151
"islatest": (config["GENERAL"]["LATEST"] == section),
5252
"isoldest": (config["GENERAL"]["OLDEST"] == section),
53+
"isEpSupporting": (config["GENERAL"]["EP_SUPPORTING"] == section),
5354
}
5455
)
5556
return supported_splunk
@@ -132,9 +133,6 @@ def main():
132133
path = os.path.join(Path(__file__).parent.parent, "config")
133134

134135
supported_splunk = _generate_supported_splunk(args, path)
135-
pprint.pprint(f"Supported Splunk versions: {json.dumps(supported_splunk)}")
136-
with open(os.environ["GITHUB_OUTPUT"], "a") as fh:
137-
print(f"supportedSplunk={json.dumps(supported_splunk)}", file=fh)
138136

139137
for splunk in supported_splunk:
140138
if splunk["islatest"]:
@@ -143,6 +141,17 @@ def main():
143141
print(f"latestSplunk={json.dumps([splunk])}", file=fh)
144142
break
145143

144+
splunk_supporting_ep = next((splunk for splunk in supported_splunk if splunk["isEpSupporting"]), None)
145+
if splunk_supporting_ep:
146+
pprint.pprint(f"EP Supporting Splunk version: {json.dumps(splunk_supporting_ep)}")
147+
supported_splunk.remove(splunk_supporting_ep) # do not pass this splunk version on the supported list
148+
with open(os.environ["GITHUB_OUTPUT"], "a") as fh:
149+
print(f"epSupportingSplunk={json.dumps(splunk_supporting_ep)}", file=fh)
150+
151+
pprint.pprint(f"Supported Splunk versions: {json.dumps(supported_splunk)}")
152+
with open(os.environ["GITHUB_OUTPUT"], "a") as fh:
153+
print(f"supportedSplunk={json.dumps(supported_splunk)}", file=fh)
154+
146155
supported_sc4s = _generate_supported_sc4s(args, path)
147156
pprint.pprint(f"Supported SC4S versions: {json.dumps(supported_sc4s)}")
148157
with open(os.environ["GITHUB_OUTPUT"], "a") as fh:

config/splunk_matrix.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[GENERAL]
22
LATEST = 10.0
33
OLDEST = 9.2
4+
EP_SUPPORTING = 10.0
45

56
[10.0]
67
VERSION = 10.0.2

0 commit comments

Comments
 (0)