From 2db72fc816c6697359411b07a9e4cb3646c906cb Mon Sep 17 00:00:00 2001 From: paytoncain Date: Tue, 9 Apr 2024 07:54:23 -0600 Subject: [PATCH] Add conditional for printing windows/unix environment variables --- .github/workflows/maven.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 48fbfd8b..28c933f2 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -93,10 +93,18 @@ jobs: run: native-image -jar pace-cli-${{ needs.build.outputs.version }}-jar-with-dependencies.jar -H:Name=pace-cli -H:ReflectionConfigurationFiles=native-reflection-configuration.json -H:-CheckToolchain - name: Print Runner OS run: | - echo "Runner OS: $RUNNER_OS" + if [ "${{ matrix.os }}" = "windows-2019" ]; then + echo "Runner OS: $env:RUNNER_OS" + else + echo "Runner OS: $RUNNER_OS" + fi - name: Print Runner Architecture run: | - echo "Runner Architecture: $RUNNER_ARCH" + if [ "${{ matrix.os }}" = "windows-2019" ]; then + echo "Runner Architecture: $env:RUNNER_ARCH" + else + echo "Runner Architecture: $RUNNER_ARCH" + fi - name: Set env vars run: | echo "os=${RUNNER_OS}" >> $GITHUB_ENV