diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index fbcf952..1a5cb4a 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -26,13 +26,13 @@ jobs: - name: Run Gradle (check) run: | # https://github.com/opensearch-project/opensearch-build/issues/4191 - chown -R opensearch:opensearch `pwd` - su opensearch -c "source /etc/profile.d/java_home.sh && ./gradlew check -Dorg.gradle.java.home=/opt/java/openjdk-${{ matrix.java }}" + chown -R ci-runner:ci-runner `pwd` + su ci-runner -c "source /etc/profile.d/java_home.sh && ./gradlew check -Dorg.gradle.java.home=/opt/java/openjdk-${{ matrix.java }}" - name: Run Gradle (assemble) run: | # https://github.com/opensearch-project/opensearch-build/issues/4191 - chown -R opensearch:opensearch `pwd` - su opensearch -c "source /etc/profile.d/java_home.sh && ./gradlew assemble -Dorg.gradle.java.home=/opt/java/openjdk-${{ matrix.java }}" + chown -R ci-runner:ci-runner `pwd` + su ci-runner -c "source /etc/profile.d/java_home.sh && ./gradlew assemble -Dorg.gradle.java.home=/opt/java/openjdk-${{ matrix.java }}" precommit-windows-macos: if: github.repository == 'opensearch-project/custom-codecs'