Skip to content

Commit 9ec47f2

Browse files
authored
#1924: skip expensive GHA for updates related to Konflux branches (#2243)
1 parent 8b5b10c commit 9ec47f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/build-notebooks-push.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
gen:
2121
name: Generate job matrix
2222
runs-on: ubuntu-latest
23+
# for odh-io/notebooks and rhds/notebooks, allow only main, rhoai-*, release-*
24+
if: ${{ (github.repository != 'opendatahub-io/notebooks' && github.repository != 'red-hat-data-services/notebooks')
25+
|| github.ref_name == 'main' || github.ref_name == '2024b' || github.ref_name == '2024a'
26+
|| startsWith(github.ref_name, 'rhoai-') || startsWith(github.ref_name, 'release-') }}
2327
outputs:
2428
matrix: ${{ steps.gen.outputs.matrix }}
2529
has_jobs: ${{ steps.gen.outputs.has_jobs }}

0 commit comments

Comments
 (0)