From 76cac8f5d6d83acccdbc726cf9cebc18059500fa Mon Sep 17 00:00:00 2001 From: Christoph Caks Date: Thu, 8 Sep 2022 11:43:10 +0200 Subject: [PATCH] working on build --- .github/workflows/deploy.yml | 2 +- build.gradle | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1b06265..4bc1293 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -23,7 +23,7 @@ jobs: gradle-version: 7.4 - run: gradle notifyJenkins env: - GITHUB_REF_NAME: ${{ github.event.workflow_run.head_branch }} + HEAD_BRANCH: ${{ github.event.workflow_run.head_branch }} BUILD_RUN_ID: ${{ github.event.workflow_run.id }} GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/build.gradle b/build.gradle index 97b57ad..089a756 100644 --- a/build.gradle +++ b/build.gradle @@ -424,7 +424,7 @@ task notifyJenkins(type: ExecuteRemoteJenkins) { def runId = System.getenv('BUILD_RUN_ID') def githubToken = System.getenv('GITHUB_TOKEN') def githubRef = System.getenv('GITHUB_REF') - def githubRefName = System.getenv('GITHUB_REF_NAME') + def headBranch = System.getenv('HEAD_BRANCH') jobUrl = "https://ci.eclipse.org/efxclipse/job/efxclipse_drift_build" buildParameters = [ @@ -433,7 +433,7 @@ task notifyJenkins(type: ExecuteRemoteJenkins) { GITHUB_ACCESS_TOKEN: githubToken, GIT_SHA: Versioning.gitSHA, GITHUB_REF: githubRef, - GITHUB_REF_NAME: githubRefName + GITHUB_REF_NAME: headBranch ] }