Skip to content

Commit

Permalink
ci: Allow the nightly source compatibility check to be run manually
Browse files Browse the repository at this point in the history
  • Loading branch information
lqiu96 committed Dec 12, 2024
1 parent 59f9e0a commit 5362544
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ on:
name: Downstream Protobuf Compatibility Check Nightly
jobs:
downstream-protobuf-test:
# Checks if PR comes from Release-Please branch or if invoked from nightly job
if: github.head_ref == 'release-please--branches--main' || github.event_name == 'schedule'
# This job runs if any of the three conditions match:
# 1. PR is raised from Release-Please (PR comes from branch: release-please--branches-{branch_name})
# 2. Job is invoked by the nightly job (scheduled event)
# 3. Job is manually invoked via Github UI (workflow_dispatch event)
if: github.head_ref == 'release-please--branches--main' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-22.04
strategy:
fail-fast: false
Expand Down

0 comments on commit 5362544

Please sign in to comment.