Skip to content

Commit 7e38062

Browse files
committed
Allow workflows to run on push events, not just PRs
- Update CI.yml to run on push events or when 'run ci cpu/gpu' label is present - Update Documentation.yml to run on push events or when 'run documentation' label is present
1 parent 6696d90 commit 7e38062

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
test-cpu-github:
13-
if: contains(github.event.pull_request.labels.*.name, 'run ci cpu')
13+
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run ci cpu')
1414
uses: control-toolbox/CTActions/.github/workflows/ci.yml@main
1515
with:
1616
versions: '["1.12"]'
@@ -22,7 +22,7 @@ jobs:
2222

2323
# Job pour le runner self-hosted kkt (GPU/CUDA)
2424
test-gpu-kkt:
25-
if: contains(github.event.pull_request.labels.*.name, 'run ci gpu')
25+
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run ci gpu')
2626
uses: control-toolbox/CTActions/.github/workflows/ci.yml@main
2727
with:
2828
versions: '["1"]'

.github/workflows/Documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
call:
13-
if: contains(github.event.pull_request.labels.*.name, 'run documentation')
13+
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run documentation')
1414
uses: control-toolbox/CTActions/.github/workflows/documentation.yml@main
1515
with:
1616
use_ct_registry: true

0 commit comments

Comments
 (0)