File tree 8 files changed +14
-13
lines changed
8 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 39
39
# <https://markphelps.me/posts/speed-up-your-go-builds-with-actions-cache/>
40
40
- id : go-cache-paths
41
41
run : |
42
- echo "::set-output name= go-build:: $(go env GOCACHE)"
43
- echo "::set-output name= go-mod:: $(go env GOMODCACHE)"
42
+ echo "go-build= $(go env GOCACHE)" >> $GITHUB_OUTPUT
43
+ echo "go-mod= $(go env GOMODCACHE)" >> $GITHUB_OUTPUT
44
44
45
45
- uses : actions/cache@v3
46
46
with :
Original file line number Diff line number Diff line change 34
34
id : check-commit-message
35
35
if : steps.regex-match.outputs.group1 != ''
36
36
run : |
37
- echo "::set-output name= applicable:: true"
37
+ echo "applicable= true" >> $GITHUB_OUTPUT
38
38
echo "This is a release commit: ${{ steps.regex-match.outputs.group1 }}"
39
39
outputs :
40
40
applicable : ${{ steps.check-commit-message.outputs.applicable }}
Original file line number Diff line number Diff line change 31
31
# <https://markphelps.me/posts/speed-up-your-go-builds-with-actions-cache/>
32
32
- id : go-cache-paths
33
33
run : |
34
- echo "::set-output name= go-build:: $(go env GOCACHE)"
35
- echo "::set-output name= go-mod:: $(go env GOMODCACHE)"
34
+ echo "go-build= $(go env GOCACHE)" >> $GITHUB_OUTPUT
35
+ echo "go-mod= $(go env GOMODCACHE)" >> $GITHUB_OUTPUT
36
36
37
37
- uses : actions/cache@v3
38
38
with :
Original file line number Diff line number Diff line change 39
39
# <https://markphelps.me/posts/speed-up-your-go-builds-with-actions-cache/>
40
40
- id : go-cache-paths
41
41
run : |
42
- echo "::set-output name= go-build:: $(go env GOCACHE)"
43
- echo "::set-output name= go-mod:: $(go env GOMODCACHE)"
42
+ echo "go-build= $(go env GOCACHE)" >> $GITHUB_OUTPUT
43
+ echo "go-mod= $(go env GOMODCACHE)" >> $GITHUB_OUTPUT
44
44
45
45
- uses : actions/cache@v3
46
46
with :
Original file line number Diff line number Diff line change 31
31
# <https://markphelps.me/posts/speed-up-your-go-builds-with-actions-cache/>
32
32
- id : go-cache-paths
33
33
run : |
34
- echo "::set-output name=go-build::$(go env GOCACHE)"
35
- echo "::set-output name=go-mod::$(go env GOMODCACHE)"
34
+ echo "go-build=$(go env GOCACHE)" >> $GITHUB_OUTPUT
35
+ echo "go-mod=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
36
+ shell : bash
36
37
37
38
- uses : actions/cache@v3
38
39
with :
Original file line number Diff line number Diff line change 35
35
body="${body//'%'/'%25'}"
36
36
body="${body//$'\n'/'%0A'}"
37
37
body="${body//$'\r'/'%0D'}"
38
- echo ::set-output name= body:: $body
38
+ echo " body= $body" >> $GITHUB_OUTPUT
39
39
40
40
- name : Create comment
41
41
uses : peter-evans/create-or-update-comment@5adcb0bb0f9fb3f95ef05400558bdb3f329ee808
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ jobs:
120
120
body="${body//'%'/'%25'}"
121
121
body="${body//$'\n'/'%0A'}"
122
122
body="${body//$'\r'/'%0D'}"
123
- echo ::set-output name= body:: $body
123
+ echo " body= $body" >> $GITHUB_OUTPUT
124
124
125
125
- name : Create comment
126
126
uses : peter-evans/create-or-update-comment@5adcb0bb0f9fb3f95ef05400558bdb3f329ee808
Original file line number Diff line number Diff line change 30
30
# <https://markphelps.me/posts/speed-up-your-go-builds-with-actions-cache/>
31
31
- id : go-cache-paths
32
32
run : |
33
- echo "::set-output name= go-build:: $(go env GOCACHE)"
34
- echo "::set-output name= go-mod:: $(go env GOMODCACHE)"
33
+ echo "go-build= $(go env GOCACHE)" >> $GITHUB_OUTPUT
34
+ echo "go-mod= $(go env GOMODCACHE)" >> $GITHUB_OUTPUT
35
35
36
36
- uses : actions/cache@v3
37
37
with :
You can’t perform that action at this time.
0 commit comments