Skip to content

Commit 6e766b5

Browse files
Limit workflow_dispatch to alphas only (#380)
1 parent 375eee4 commit 6e766b5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/rancher-upgrade-cluster-provisioning.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
if: |
4040
github.event_name == 'schedule' ||
4141
github.event.inputs.run_all_versions == 'true' ||
42-
(github.event_name == 'workflow_dispatch' && startsWith(github.event.inputs.rancher_version, 'v2.13')) ||
42+
(github.event_name == 'workflow_dispatch' && startsWith(github.event.inputs.rancher_version, 'v2.13')) && contains(github.event.inputs.rancher_version, '-alpha') ||
4343
(github.event_name == 'workflow_call' && startsWith(inputs.rancher_version, 'v2.13')) && contains(inputs.rancher_version, '-alpha')
4444
name: ${{ github.event.inputs.rancher_version }}
4545
runs-on: ubuntu-latest
@@ -346,7 +346,7 @@ jobs:
346346
if: |
347347
github.event_name == 'schedule' ||
348348
github.event.inputs.run_all_versions == 'true' ||
349-
(github.event_name == 'workflow_dispatch' && startsWith(github.event.inputs.rancher_version, 'v2.12')) ||
349+
(github.event_name == 'workflow_dispatch' && startsWith(github.event.inputs.rancher_version, 'v2.12')) && contains(github.event.inputs.rancher_version, '-alpha') ||
350350
(github.event_name == 'workflow_call' && startsWith(inputs.rancher_version, 'v2.12')) && contains(inputs.rancher_version, '-alpha')
351351
name: ${{ github.event.inputs.rancher_version }}
352352
runs-on: ubuntu-latest
@@ -661,7 +661,7 @@ jobs:
661661
if: |
662662
github.event_name == 'schedule' ||
663663
github.event.inputs.run_all_versions == 'true' ||
664-
(github.event_name == 'workflow_dispatch' && startsWith(github.event.inputs.rancher_version, 'v2.11')) ||
664+
(github.event_name == 'workflow_dispatch' && startsWith(github.event.inputs.rancher_version, 'v2.11')) && contains(github.event.inputs.rancher_version, '-alpha') ||
665665
(github.event_name == 'workflow_call' && startsWith(inputs.rancher_version, 'v2.11')) && contains(inputs.rancher_version, '-alpha')
666666
name: ${{ github.event.inputs.rancher_version }}
667667
runs-on: ubuntu-latest

.github/workflows/recurring-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
if: |
4040
github.event_name == 'schedule' ||
4141
github.event.inputs.run_all_versions == 'true' ||
42-
(github.event_name == 'workflow_dispatch' && startsWith(github.event.inputs.rancher_version, 'v2.13')) ||
42+
(github.event_name == 'workflow_dispatch' && startsWith(github.event.inputs.rancher_version, 'v2.13')) && contains(github.event.inputs.rancher_version, '-alpha') ||
4343
(github.event_name == 'workflow_call' && startsWith(inputs.rancher_version, 'v2.13')) && contains(inputs.rancher_version, '-alpha')
4444
name: ${{ github.event.inputs.rancher_version }}
4545
runs-on: ubuntu-latest
@@ -346,7 +346,7 @@ jobs:
346346
if: |
347347
github.event_name == 'schedule' ||
348348
github.event.inputs.run_all_versions == 'true' ||
349-
(github.event_name == 'workflow_dispatch' && startsWith(github.event.inputs.rancher_version, 'v2.12')) ||
349+
(github.event_name == 'workflow_dispatch' && startsWith(github.event.inputs.rancher_version, 'v2.12')) && contains(github.event.inputs.rancher_version, '-alpha') ||
350350
(github.event_name == 'workflow_call' && startsWith(inputs.rancher_version, 'v2.12')) && contains(inputs.rancher_version, '-alpha')
351351
name: ${{ github.event.inputs.rancher_version }}
352352
runs-on: ubuntu-latest
@@ -660,7 +660,7 @@ jobs:
660660
if: |
661661
github.event_name == 'schedule' ||
662662
github.event.inputs.run_all_versions == 'true' ||
663-
(github.event_name == 'workflow_dispatch' && startsWith(github.event.inputs.rancher_version, 'v2.11')) ||
663+
(github.event_name == 'workflow_dispatch' && startsWith(github.event.inputs.rancher_version, 'v2.11')) && contains(github.event.inputs.rancher_version, '-alpha') ||
664664
(github.event_name == 'workflow_call' && startsWith(inputs.rancher_version, 'v2.11')) && contains(inputs.rancher_version, '-alpha')
665665
name: ${{ github.event.inputs.rancher_version }}
666666
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)