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:
parent
5010a559b6
commit
42251b3a13
2 changed files with 5 additions and 1 deletions
2
.github/actions/build-keycloak/action.yml
vendored
2
.github/actions/build-keycloak/action.yml
vendored
|
@ -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
|
||||||
|
|
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue