Skip to content

Commit 0137f94

Browse files
Use properties in the checkSamples job
Issue gh-10344
1 parent cddffa4 commit 0137f94

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/continuous-integration-workflow.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,15 @@ jobs:
111111
env:
112112
GRADLE_USER_HOME: ~/.gradle
113113
- name: Check samples project
114+
env:
115+
LOCAL_REPOSITORY_PATH: ${{ github.workspace }}/build/publications/repos
116+
SAMPLES_INIT_SCRIPT: ${{ github.workspace }}/build/includeRepo/spring-security-ci.gradle
114117
run: |
115118
export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"
116119
export GRADLE_ENTERPRISE_CACHE_PASSWORD="$GRADLE_ENTERPRISE_CACHE_PASSWORD"
117120
export GRADLE_ENTERPRISE_ACCESS_KEY="$GRADLE_ENTERPRISE_SECRET_ACCESS_KEY"
118-
./gradlew checkSamples --stacktrace
121+
./gradlew publishMavenJavaPublicationToLocalRepository
122+
./gradlew checkSamples -PsamplesInitScript="$SAMPLES_INIT_SCRIPT" -PlocalRepositoryPath="$LOCAL_REPOSITORY_PATH" --stacktrace
119123
check_tangles:
120124
name: Check for Package Tangles
121125
needs: [ prerequisites ]

0 commit comments

Comments
 (0)