From 27b4ef4ece7735ba060950d9614d875d8a471992 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Thu, 24 Mar 2022 13:16:14 -0400 Subject: [PATCH] ci: version-check to run only for release-please PR (#632) While updating multiple dependencies in the BOM, it's ok to have inconsistent versions. But we want to ensure the consistent versioning when we make a release of the BOM. I copied the setting from https://github.com/googleapis/java-cloud-bom/blob/main/.github/workflows/full-convergence-check.yaml#L10 --- java-shared-dependencies/.github/workflows/version-check.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/java-shared-dependencies/.github/workflows/version-check.yaml b/java-shared-dependencies/.github/workflows/version-check.yaml index b78a560fbc78..7a8ed6fdedb3 100644 --- a/java-shared-dependencies/.github/workflows/version-check.yaml +++ b/java-shared-dependencies/.github/workflows/version-check.yaml @@ -8,6 +8,7 @@ jobs: upper-bound-check: name: Upper-bound check runs-on: ubuntu-latest + if: github.repository_owner == 'googleapis' && github.head_ref == 'release-please--branches--main' steps: - uses: actions/checkout@v2 - uses: stCarolas/setup-maven@v4 @@ -25,6 +26,7 @@ jobs: grpc-convergence-check: name: gRPC dependency convergence check runs-on: ubuntu-latest + if: github.repository_owner == 'googleapis' && github.head_ref == 'release-please--branches--main' steps: - uses: actions/checkout@v2 - uses: stCarolas/setup-maven@v4