Commit 62a53bb 1 parent a75090d commit 62a53bb Copy full SHA for 62a53bb
File tree 1 file changed +10
-25
lines changed
1 file changed +10
-25
lines changed Original file line number Diff line number Diff line change @@ -45,32 +45,17 @@ jobs:
45
45
runs-on : ${{ matrix.os }}
46
46
steps :
47
47
- uses : actions/checkout@v4
48
- - name : Step 1
49
- run : |
50
- echo "action_state=yellow" >> $GITHUB_ENV
51
- echo "State is: '${{ env.action_state }}'" # No output since same step
52
- - name : Step 2
53
- run : |
54
- echo "State is: '${{ env.action_state }}'" # Output works
55
- - name : Step 3
56
- env :
57
- OUT_TEST : " 011"
58
- run : echo "ok"
59
- - name : Step 4
60
- run : |
61
- echo "env out $OUT_TEST"
62
- - name : update GOCACHE vars
63
- if : runner.os == 'Windows'
64
- run : |
65
- # echo "GOCACHE=D:\gocache" >> "$GITHUB_ENV"
66
- # echo "GOMODCACHE=D:\gomodcache" >> "$GITHUB_ENV"
67
- # echo "GOTMPDIR=D:\gotmp" >> "$GITHUB_ENV"
68
- echo "COLOUR=blue" >> $GITHUB_ENV
69
- mkdir D:\gotmp
70
- - name : Deploy using stored timestamp
71
- run : |
72
- echo "Deploying at $GOMODCACHE '${{ env.COLOUR }}'"
73
48
- uses : actions/setup-go@v5
49
+ if : runner.os != 'Windows'
50
+ with :
51
+ go-version-file : go.mod
52
+ cache : true
53
+ - uses : actions/setup-go@v5
54
+ if : runner.os == 'Windows'
55
+ env :
56
+ GOCACHE : " D:\\ gocache"
57
+ GOMODCACHE : " D:\\ gomodcache"
58
+ GOTMPDIR : " D:\\ gotmp"
74
59
with :
75
60
go-version-file : go.mod
76
61
cache : true
You can’t perform that action at this time.
0 commit comments