We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2f963f commit f849f7cCopy full SHA for f849f7c
.github/workflows/go.yml
@@ -11,13 +11,11 @@ jobs:
11
runs-on: self-hosted
12
steps:
13
- uses: actions/checkout@v4
14
- - name: Print Environment Variable
+ - name: Echo environment variables using PowerShell
15
run: |
16
- echo 'package main' > print_env.go
17
- echo 'import ("fmt"; "os")' >> print_env.go
18
- echo 'func main() { envVar := os.Getenv("HTTP_PORT"); fmt.Println(envVar) }' >> print_env.go
19
- go run print_env.go
20
- shell: cmd
+ echo "=== Print Environment Variables in PowerShell ==="
+ Get-ChildItem Env:
+
21
22
- name: Set up Go
23
uses: actions/setup-go@v5
0 commit comments