Skip to content

Commit 06dbc5a

Browse files
diemolsandeepsuryaprasad
authored andcommitted
[ci] Using workflow_call instead of workflow_run
1 parent c734dec commit 06dbc5a

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/ci-renovate-rbe.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,8 @@ jobs:
5959
caching: false
6060
ruby-version: jruby-9.4.8.0
6161
run: ./scripts/github-actions/ci-build.sh
62+
63+
ci-gh:
64+
name: CI - GitHub
65+
if: github.repository_owner == 'seleniumhq'
66+
uses: ./.github/workflows/ci.yml

.github/workflows/ci.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,14 @@ on:
88
schedule:
99
- cron: "0 */12 * * *"
1010
workflow_dispatch:
11-
workflow_run:
12-
workflows: [ CI - Renovate - RBE ]
13-
types: [ completed ]
11+
workflow_call:
1412

1513
jobs:
1614
check:
1715
name: Check
1816
if: >
1917
github.repository_owner == 'seleniumhq' &&
20-
(startsWith(github.head_ref, 'renovate/') != true || github.event_name == 'workflow_run')
18+
(startsWith(github.head_ref, 'renovate/') != true || github.event_name == 'workflow_call')
2119
runs-on: ubuntu-latest
2220
outputs:
2321
targets: ${{ steps.check-targets.outputs.bazel-targets }}
@@ -50,6 +48,7 @@ jobs:
5048
if: >
5149
github.event_name == 'schedule' ||
5250
github.event_name == 'workflow_dispatch' ||
51+
github.event_name == 'workflow_call' ||
5352
contains(needs.check.outputs.targets, '//dotnet') ||
5453
contains(join(github.event.commits.*.message), '[dotnet]') ||
5554
contains(github.event.pull_request.title, '[dotnet]')
@@ -61,6 +60,7 @@ jobs:
6160
if: >
6261
github.event_name == 'schedule' ||
6362
github.event_name == 'workflow_dispatch' ||
63+
github.event_name == 'workflow_call' ||
6464
contains(needs.check.outputs.targets, '//java') ||
6565
contains(join(github.event.commits.*.message), '[java]') ||
6666
contains(github.event.pull_request.title, '[java]')
@@ -72,6 +72,7 @@ jobs:
7272
if: >
7373
github.event_name == 'schedule' ||
7474
github.event_name == 'workflow_dispatch' ||
75+
github.event_name == 'workflow_call' ||
7576
contains(needs.check.outputs.targets, '//py') ||
7677
contains(join(github.event.commits.*.message), '[py]') ||
7778
contains(github.event.pull_request.title, '[py]')
@@ -83,6 +84,7 @@ jobs:
8384
if: >
8485
github.event_name == 'schedule' ||
8586
github.event_name == 'workflow_dispatch' ||
87+
github.event_name == 'workflow_call' ||
8688
contains(needs.check.outputs.targets, '//rb') ||
8789
contains(join(github.event.commits.*.message), '[rb]') ||
8890
contains(github.event.pull_request.title, '[rb]')
@@ -96,6 +98,7 @@ jobs:
9698
if: >
9799
github.event_name == 'schedule' ||
98100
github.event_name == 'workflow_dispatch' ||
101+
github.event_name == 'workflow_call' ||
99102
contains(needs.check.outputs.targets, '//rust') ||
100103
contains(join(github.event.commits.*.message), '[rust]') ||
101104
contains(github.event.pull_request.title, '[rust]')

0 commit comments

Comments
 (0)