Skip to content

Commit 87f2646

Browse files
committed
feat: limit only to latest splunk version when run is scheduled
1 parent bb8557a commit 87f2646

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.github/workflows/reusable-build-test-release.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,6 @@ jobs:
260260
persist-credentials: false
261261
- id: matrix
262262
uses: splunk/addonfactory-test-matrix-action@v3.0
263-
- name: Set Splunk version to latest for scheduled runs
264-
if: github.event_name == 'schedule'
265-
run: |
266-
echo "supportedSplunk=[{\"version\":\"${{ steps.matrix.outputs.latestSplunk }}\"}]" >> "$GITHUB_OUTPUT"
267263
- name: job summary
268264
run: |
269265
splunk_version_list=$(echo '${{ steps.matrix.outputs.supportedSplunk }}' | jq -r '.[].version')
@@ -1227,7 +1223,7 @@ jobs:
12271223
strategy:
12281224
fail-fast: false
12291225
matrix:
1230-
splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }}
1226+
splunk: ${{ fromJson(github.event_name == 'schedule' ? needs.meta.outputs.matrix_latestSplunk : needs.meta.outputs.matrix_supportedSplunk) }}
12311227
sc4s: ${{ fromJson(needs.meta.outputs.matrix_supportedSC4S) }}
12321228
container:
12331229
image: ghcr.io/splunk/workflow-engine-base:4.1.0
@@ -1495,7 +1491,7 @@ jobs:
14951491
strategy:
14961492
fail-fast: false
14971493
matrix:
1498-
splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }}
1494+
splunk: ${{ fromJson(github.event_name == 'schedule' ? needs.meta.outputs.matrix_latestSplunk : needs.meta.outputs.matrix_supportedSplunk) }}
14991495
sc4s: ${{ fromJson(needs.meta.outputs.matrix_supportedSC4S) }}
15001496

15011497
container:
@@ -1750,7 +1746,7 @@ jobs:
17501746
strategy:
17511747
fail-fast: false
17521748
matrix:
1753-
splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }}
1749+
splunk: ${{ fromJson(github.event_name == 'schedule' ? needs.meta.outputs.matrix_latestSplunk : needs.meta.outputs.matrix_supportedSplunk) }}
17541750
browser: [ "chrome" ]
17551751
vendor-version: ${{ fromJson(needs.meta.outputs.matrix_supportedUIVendors) }}
17561752
marker: ${{ fromJson(inputs.ui_marker) }}
@@ -2027,7 +2023,7 @@ jobs:
20272023
strategy:
20282024
fail-fast: false
20292025
matrix:
2030-
splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }}
2026+
splunk: ${{ fromJson(github.event_name == 'schedule' ? needs.meta.outputs.matrix_latestSplunk : needs.meta.outputs.matrix_supportedSplunk) }}
20312027
modinput-type: [ "modinput_functional" ]
20322028
vendor-version: ${{ fromJson(needs.meta.outputs.matrix_supportedModinputFunctionalVendors) }}
20332029
marker: ${{ fromJson(inputs.marker) }}
@@ -2302,7 +2298,7 @@ jobs:
23022298
strategy:
23032299
fail-fast: false
23042300
matrix:
2305-
splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }}
2301+
splunk: ${{ fromJson(github.event_name == 'schedule' ? needs.meta.outputs.matrix_latestSplunk : needs.meta.outputs.matrix_supportedSplunk) }}
23062302
vendor-version: ${{ fromJson(needs.meta.outputs.matrix_supportedModinputFunctionalVendors) }}
23072303
marker: ${{ fromJson(inputs.ucc-modinput-marker) }}
23082304
container:
@@ -2576,7 +2572,7 @@ jobs:
25762572
strategy:
25772573
fail-fast: false
25782574
matrix:
2579-
splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }}
2575+
splunk: ${{ fromJson(github.event_name == 'schedule' ? needs.meta.outputs.matrix_latestSplunk : needs.meta.outputs.matrix_supportedSplunk) }}
25802576
vendor-version: ${{ fromJson(needs.meta.outputs.matrix_supportedModinputFunctionalVendors) }}
25812577
ta-version-from-upgrade: ${{ fromJson(inputs.upgrade-tests-ta-versions) }}
25822578
container:
@@ -2839,7 +2835,7 @@ jobs:
28392835
strategy:
28402836
fail-fast: false
28412837
matrix:
2842-
splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }}
2838+
splunk: ${{ fromJson(github.event_name == 'schedule' ? needs.meta.outputs.matrix_latestSplunk : needs.meta.outputs.matrix_supportedSplunk) }}
28432839
os: ${{ fromJson(inputs.scripted-inputs-os-list) }}
28442840
container:
28452841
image: ghcr.io/splunk/workflow-engine-base:4.1.0

0 commit comments

Comments
 (0)