Example 04 - Runner Info #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 | |
"" |