Skip to content

Commit

Permalink
feat: limit only to latest splunk version when run is scheduled
Browse files Browse the repository at this point in the history
  • Loading branch information
dkaras-splunk committed Jan 10, 2025
1 parent bb8557a commit 87f2646
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/reusable-build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,6 @@ jobs:
persist-credentials: false
- id: matrix
uses: splunk/addonfactory-test-matrix-action@v3.0
- name: Set Splunk version to latest for scheduled runs
if: github.event_name == 'schedule'
run: |
echo "supportedSplunk=[{\"version\":\"${{ steps.matrix.outputs.latestSplunk }}\"}]" >> "$GITHUB_OUTPUT"
- name: job summary
run: |
splunk_version_list=$(echo '${{ steps.matrix.outputs.supportedSplunk }}' | jq -r '.[].version')
Expand Down Expand Up @@ -1227,7 +1223,7 @@ jobs:
strategy:
fail-fast: false
matrix:
splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }}
splunk: ${{ fromJson(github.event_name == 'schedule' ? needs.meta.outputs.matrix_latestSplunk : needs.meta.outputs.matrix_supportedSplunk) }}
sc4s: ${{ fromJson(needs.meta.outputs.matrix_supportedSC4S) }}
container:
image: ghcr.io/splunk/workflow-engine-base:4.1.0
Expand Down Expand Up @@ -1495,7 +1491,7 @@ jobs:
strategy:
fail-fast: false
matrix:
splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }}
splunk: ${{ fromJson(github.event_name == 'schedule' ? needs.meta.outputs.matrix_latestSplunk : needs.meta.outputs.matrix_supportedSplunk) }}
sc4s: ${{ fromJson(needs.meta.outputs.matrix_supportedSC4S) }}

container:
Expand Down Expand Up @@ -1750,7 +1746,7 @@ jobs:
strategy:
fail-fast: false
matrix:
splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }}
splunk: ${{ fromJson(github.event_name == 'schedule' ? needs.meta.outputs.matrix_latestSplunk : needs.meta.outputs.matrix_supportedSplunk) }}
browser: [ "chrome" ]
vendor-version: ${{ fromJson(needs.meta.outputs.matrix_supportedUIVendors) }}
marker: ${{ fromJson(inputs.ui_marker) }}
Expand Down Expand Up @@ -2027,7 +2023,7 @@ jobs:
strategy:
fail-fast: false
matrix:
splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }}
splunk: ${{ fromJson(github.event_name == 'schedule' ? needs.meta.outputs.matrix_latestSplunk : needs.meta.outputs.matrix_supportedSplunk) }}
modinput-type: [ "modinput_functional" ]
vendor-version: ${{ fromJson(needs.meta.outputs.matrix_supportedModinputFunctionalVendors) }}
marker: ${{ fromJson(inputs.marker) }}
Expand Down Expand Up @@ -2302,7 +2298,7 @@ jobs:
strategy:
fail-fast: false
matrix:
splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }}
splunk: ${{ fromJson(github.event_name == 'schedule' ? needs.meta.outputs.matrix_latestSplunk : needs.meta.outputs.matrix_supportedSplunk) }}
vendor-version: ${{ fromJson(needs.meta.outputs.matrix_supportedModinputFunctionalVendors) }}
marker: ${{ fromJson(inputs.ucc-modinput-marker) }}
container:
Expand Down Expand Up @@ -2576,7 +2572,7 @@ jobs:
strategy:
fail-fast: false
matrix:
splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }}
splunk: ${{ fromJson(github.event_name == 'schedule' ? needs.meta.outputs.matrix_latestSplunk : needs.meta.outputs.matrix_supportedSplunk) }}
vendor-version: ${{ fromJson(needs.meta.outputs.matrix_supportedModinputFunctionalVendors) }}
ta-version-from-upgrade: ${{ fromJson(inputs.upgrade-tests-ta-versions) }}
container:
Expand Down Expand Up @@ -2839,7 +2835,7 @@ jobs:
strategy:
fail-fast: false
matrix:
splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }}
splunk: ${{ fromJson(github.event_name == 'schedule' ? needs.meta.outputs.matrix_latestSplunk : needs.meta.outputs.matrix_supportedSplunk) }}
os: ${{ fromJson(inputs.scripted-inputs-os-list) }}
container:
image: ghcr.io/splunk/workflow-engine-base:4.1.0
Expand Down

0 comments on commit 87f2646

Please sign in to comment.