You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by mm...@apache.org on 2023/08/24 11:38:55 UTC

[ignite] branch master updated: IGNITE-20274 github action must rely on environment variable to run agains the source code (#10908)

This is an automated email from the ASF dual-hosted git repository.

mmuzaf pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new de1b67e302b IGNITE-20274 github action must rely on environment variable to run agains the source code (#10908)
de1b67e302b is described below

commit de1b67e302b10576f7aeac0e5a16757b588f2bb7
Author: Maxim Muzafarov <34...@users.noreply.github.com>
AuthorDate: Thu Aug 24 13:38:44 2023 +0200

    IGNITE-20274 github action must rely on environment variable to run agains the source code (#10908)
---
 .github/workflows/sonar-pr-from-fork.yml | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/sonar-pr-from-fork.yml b/.github/workflows/sonar-pr-from-fork.yml
index f96b97987fa..b052d984c58 100644
--- a/.github/workflows/sonar-pr-from-fork.yml
+++ b/.github/workflows/sonar-pr-from-fork.yml
@@ -70,9 +70,9 @@ jobs:
         run: >
           ./mvnw org.sonarsource.scanner.maven:sonar-maven-plugin:sonar 
           -P all-java,lgpl,examples,skip-docs
-          -Dsonar.pullrequest.branch=${{ github.head_ref }}
-          -Dsonar.pullrequest.base=${{ github.base_ref }}
-          -Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
+          -Dsonar.pullrequest.branch=${PULLREQUEST_BRANCH}
+          -Dsonar.pullrequest.base=${PULLREQUEST_BASE}
+          -Dsonar.pullrequest.key=${PULLREQUEST_KEY}
           -Dsonar.pullrequest.github.repository=apache/ignite
           -Dsonar.pullrequest.provider=GitHub 
           -Dsonar.pullrequest.github.summary_comment=true
@@ -85,3 +85,6 @@ jobs:
           JAVA_OPTS: "-XX:+UseG1GC -XX:InitialHeapSize=2g -XX:MaxHeapSize=6g -XX:+UseStringDeduplication"
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           SONARCLOUD_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
+          PULLREQUEST_BRANCH: ${{ github.head_ref }}
+          PULLREQUEST_BASE: ${{ github.base_ref }}
+          PULLREQUEST_KEY: ${{ github.event.pull_request.number }}