Skip to content

Commit f849f7c

Browse files
Update go.yml
1 parent d2f963f commit f849f7c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/go.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ jobs:
1111
runs-on: self-hosted
1212
steps:
1313
- uses: actions/checkout@v4
14-
- name: Print Environment Variable
14+
- name: Echo environment variables using PowerShell
1515
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
16+
echo "=== Print Environment Variables in PowerShell ==="
17+
Get-ChildItem Env:
18+
2119
2220
- name: Set up Go
2321
uses: actions/setup-go@v5

0 commit comments

Comments
 (0)