Skip to content

Commit c334a0c

Browse files
authored
ci: Allow manual invocations for the Protobuf Source CI Job (#3463)
Manually invoking with Protobuf-Java v4.26.0: https://github.com/googleapis/sdk-platform-java/actions/runs/12303211967
1 parent 12d9ff2 commit c334a0c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/downstream_protobuf_compatibility_check_nightly.yaml

+7-3
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,20 @@ on:
66
workflow_dispatch:
77
inputs:
88
protobuf_runtime_versions:
9-
description: 'Comma separated list of Protobuf-Java versions (i.e. "3.25.x","4.x.y")'
9+
description: 'Comma separated list of Protobuf-Java versions (i.e. "3.25.x","4.x.y").
10+
Note: Surround each version in the list with quotes ("")'
1011
required: true
1112
schedule:
1213
- cron: '0 1 * * *' # Nightly at 1am
1314

1415
name: Downstream Protobuf Compatibility Check Nightly
1516
jobs:
1617
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'
18+
# This job runs if any of the three conditions match:
19+
# 1. PR is raised from Release-Please (PR comes from branch: release-please--branches-main)
20+
# 2. Job is invoked by the nightly job (scheduled event)
21+
# 3. Job is manually invoked via Github UI (workflow_dispatch event)
22+
if: github.head_ref == 'release-please--branches--main' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
1923
runs-on: ubuntu-22.04
2024
strategy:
2125
fail-fast: false

0 commit comments

Comments
 (0)