Skip to content

Example 04 - Runner Info #2

Example 04 - Runner Info

Example 04 - Runner Info #2

#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 | select name,value
""
"=== MODULES ==="
get-module | select name,version
""