Skip to content

Commit

Permalink
Add conditional for printing windows/unix environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
paytoncain committed Apr 9, 2024
1 parent 3d07922 commit 2db72fc
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2db72fc

Please sign in to comment.