Skip to content

Commit ed173ab

Browse files
authored
[GH Actions] Trigger when the kokoro:run label is removed (KhronosGroup#6230)
We have a github action that will create a new PR to udpate the dependencies. Because this is done by a GH action, it will not trigger the GH Actions to run the presubmits. To get them to run, I currently close the PR, and then reopen it. To make this easier, I'd like to have the presubmits be trigged by the removal of the `kokoro:run` label. The work flow will become: 1. GH Action to create a new PR, and it adds the `kokoro:run` labal. 2. Kokoro will see the label, remove it and run the kokoro presubmits. 3. When the GH Action bot sees the label is removed, I expect it to run the GH action presubmits. 4. Someone reviews the PR, and it will automerge of all of the tests have passed.
1 parent c0455d4 commit ed173ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/bazel.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ on:
77
branches:
88
- 'main'
99
pull_request:
10+
types: [opened, synchronize, reopened, unlabeled]
1011

1112
jobs:
1213
build:
14+
if: github.event.action != 'unlabeled' || github.event.label.name == 'kokoro:run'
1315
timeout-minutes: 120
1416
strategy:
1517
matrix:

0 commit comments

Comments
 (0)