Add check to ensure that no unstaged proto.lock files exist on PRs issued against release/26.x branches (#33592)

Closes #33566

Signed-off-by: Ryan Emerson <remerson@redhat.com>
This commit is contained in:
Ryan Emerson 2024-10-15 13:15:15 +01:00 committed by GitHub
parent 5010a559b6
commit 42251b3a13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -35,7 +35,7 @@ runs:
# Ensure this plugin is built first to avoid warnings in the build # Ensure this plugin is built first to avoid warnings in the build
./mvnw install -Pdistribution -am -pl distribution/maven-plugins/licenses-processor ./mvnw install -Pdistribution -am -pl distribution/maven-plugins/licenses-processor
# By using "dependency:resolve", it will download all dependencies used in later stages for running the tests # By using "dependency:resolve", it will download all dependencies used in later stages for running the tests
./mvnw install dependency:resolve -V -e -DskipTests -DskipExamples -DexcludeGroupIds=org.keycloak -Dsilent=true ./mvnw install dependency:resolve -V -e -DskipTests -DskipExamples -DexcludeGroupIds=org.keycloak -Dsilent=true -DcommitProtoLockChanges=true
- id: compress-keycloak-maven-repository - id: compress-keycloak-maven-repository
name: Compress Keycloak Maven artifacts name: Compress Keycloak Maven artifacts

View file

@ -64,6 +64,10 @@ jobs:
- name: Build Keycloak - name: Build Keycloak
uses: ./.github/actions/build-keycloak uses: ./.github/actions/build-keycloak
- name: Check for unstaged proto.lock files
if: github.event_name == 'pull_request' && startsWith(github.event.pull_request.base.ref, 'release/')
run: git diff --name-only --exit-code -- "**/proto.lock"
unit-tests: unit-tests:
name: Base UT name: Base UT
runs-on: ubuntu-latest runs-on: ubuntu-latest