Skip to content

Example 04 - Runner Info #4

Example 04 - Runner Info

Example 04 - Runner Info #4

#This is the bare minimum a GitHub Actions workflow can be. It runs a script that outputs a message to the console.
on: workflow_dispatch
name: Example 04 - Runner Info
defaults:
run:
shell: pwsh
jobs:
getRunnerInfo:
runs-on: ubuntu-latest
steps:
- run: |
"=== RUNNER INFO ==="
$PSVersionTable
""
"=== ENV VARS ==="
dir env:
""
"=== CURRENT DIRECTORY ==="
$PWD
""
"=== VARIABLES ==="
Get-Variable | ft -auto name,value
""
"=== LOADED MODULES ==="
get-module | ft -auto name,version
""
"=== AVAILABLE MODULES ==="
get-module -listavailable | ft -auto name,version
""