Skip to content

Commit

Permalink
Update runner-display.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubakimoto committed Jun 26, 2024
1 parent 886bca8 commit 6722de7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/runner-display.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@ jobs:
- name: Display OS info (Windows)
if: startsWith(matrix.os, 'windows') == true
run: |
$OS_INFO = python -c "import platform; print(f'OS: {platform.system()}')"
$RELEASE_INFO = python -c "import platform; print(f'Release: {platform.release()}')"
$VERSION_INFO = python -c "import platform; print(f'Version: {platform.version()}')"
$MACHINE_INFO = python -c "import platform; print(f'Machine: {platform.machine()}')"
$PROCESSOR_INFO = python -c "import platform; print(f'Processor: {platform.processor()}')"
$OS_INFO=python -c "import platform; print(platform.system())"
$RELEASE_INFO=python -c "import platform; print(platform.release())"
$VERSION_INFO=python -c "import platform; print(platform.version())"
$MACHINE_INFO=python -c "import platform; print(platform.machine())"
$PROCESSOR_INFO=python -c "import platform; print(platform.processor())"
echo "| Runner | OS | Release | Version | Machine | Processor |" >> $env:GITHUB_STEP_SUMMARY
echo "| --- | --- | --- | --- | --- | --- |" >> $env:GITHUB_STEP_SUMMARY
echo "| $OS_INFO | $RELEASE_INFO | $VERSION_INFO | $MACHINE_INFO | $PROCESSOR_INFO |" >> $env:GITHUB_STEP_SUMMARY
- name: Display OS info (macOS, Linux)
if: startsWith(matrix.os, 'windows') == false
run: |
OS_INFO=$(python -c "import platform; print(f'OS: {platform.system()}')")
RELEASE_INFO=$(python -c "import platform; print(f'Release: {platform.release()}')")
VERSION_INFO=$(python -c "import platform; print(f'Version: {platform.version()}')")
MACHINE_INFO=$(python -c "import platform; print(f'Machine: {platform.machine()}')")
PROCESSOR_INFO=$(python -c "import platform; print(f'Processor: {platform.processor()}')")
OS_INFO=$(python -c "import platform; print(platform.system())")
RELEASE_INFO=$(python -c "import platform; print(platform.release()}")
VERSION_INFO=$(python -c "import platform; print(platform.version())")
MACHINE_INFO=$(python -c "import platform; print(platform.machine())")
PROCESSOR_INFO=$(python -c "import platform; print(platform.processor())")
echo "| Runner | OS | Release | Version | Machine | Processor |" >> $GITHUB_STEP_SUMMARY
echo "| --- | --- | --- | --- | --- | --- |" >> $GITHUB_STEP_SUMMARY
echo "| ${{ matrix.os }} | $OS_INFO | $RELEASE_INFO | $VERSION_INFO | $MACHINE_INFO | $PROCESSOR_INFO |" >> $GITHUB_STEP_SUMMARY

0 comments on commit 6722de7

Please sign in to comment.