Skip to content

Commit 5362544

Browse files
committed
ci: Allow the nightly source compatibility check to be run manually
1 parent 59f9e0a commit 5362544

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/downstream_protobuf_compatibility_check_nightly.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ on:
1414
name: Downstream Protobuf Compatibility Check Nightly
1515
jobs:
1616
downstream-protobuf-test:
17-
# Checks if PR comes from Release-Please branch or if invoked from nightly job
18-
if: github.head_ref == 'release-please--branches--main' || github.event_name == 'schedule'
17+
# This job runs if any of the three conditions match:
18+
# 1. PR is raised from Release-Please (PR comes from branch: release-please--branches-{branch_name})
19+
# 2. Job is invoked by the nightly job (scheduled event)
20+
# 3. Job is manually invoked via Github UI (workflow_dispatch event)
21+
if: github.head_ref == 'release-please--branches--main' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
1922
runs-on: ubuntu-22.04
2023
strategy:
2124
fail-fast: false

0 commit comments

Comments
 (0)