From 8ea9e98534445920b9ea9819c580b114fadca844 Mon Sep 17 00:00:00 2001 From: Rodrigo Antunes Date: Tue, 27 Aug 2024 10:18:53 -0300 Subject: [PATCH] Fix jit-executor-rc workflow --- .github/workflows/publish-jitexecutor-native-rc.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-jitexecutor-native-rc.yml b/.github/workflows/publish-jitexecutor-native-rc.yml index 8cbfe13cf8..0c9a3c6c06 100644 --- a/.github/workflows/publish-jitexecutor-native-rc.yml +++ b/.github/workflows/publish-jitexecutor-native-rc.yml @@ -110,7 +110,7 @@ jobs: KOGITO_RUNTIMES_REPO: ${{ github.event.inputs.kogito_runtimes_repository }} shell: pwsh run: | - New-Item -Name ".m2" -Path "${WORKDIR_PATH}" -ItemType Directory + New-Item -Name ".m2" -Path "$env:WORKDIR_PATH" -ItemType Directory $contentToAdd = @" @@ -132,7 +132,7 @@ jobs: apache-kie-kogito-runtimes-staging-repository Apache KIE Kogito Runtimes Staging Repository - ${KOGITO_RUNTIMES_REPO} + $env:KOGITO_RUNTIMES_REPO default true @@ -151,7 +151,7 @@ jobs: "@ - Add-Content "${WORKDIR_PATH}\.m2\settings.xml" $contentToAdd + Add-Content "$env:WORKDIR_PATH\.m2\settings.xml" $contentToAdd - name: "Set up JDK 17" uses: actions/setup-java@v4 @@ -222,7 +222,7 @@ jobs: SETTINGS_FILE_PATH: ${{ github.workspace }}\.m2\settings.xml run: | mvn -B -fae -ntp -N -e versions:update-parent -DparentVersion="[${{ steps.version.outputs.PROJECT_VERSION }}]" -DallowSnapshots=true -DgenerateBackupPoms=false -s ${SETTINGS_FILE_PATH} - mvn -B -fae -ntp -N -e versions:update-child-modules -DallowSnapshots=true -DgenerateBackupPoms=false -s ${SETTINGS_FILE_PATH} + mvn -B -fae -ntp -N -e versions:update-child-modules -DallowSnapshots=true -DgenerateBackupPoms=false -s $env:SETTINGS_FILE_PATH - name: "Build macOS" if: runner.os == 'macOS' && github.event_name == 'pull_request' @@ -264,7 +264,7 @@ jobs: env: SETTINGS_FILE_PATH: ${{ github.workspace }}\.m2\settings.xml run: | - mvn clean deploy -B -ntp -DdeployAtEnd -DskipTests -pl jitexecutor-native/jitexecutor-native-win32 -am -Pjitexecutor-native -Papache-release -s ${SETTINGS_FILE_PATH} + mvn clean deploy -B -ntp -DdeployAtEnd -DskipTests -pl jitexecutor-native/jitexecutor-native-win32 -am -Pjitexecutor-native -Papache-release -s $env:SETTINGS_FILE_PATH - name: "Upload JIT Executor binary" uses: actions/upload-artifact@v4