Skip to content

Commit d1641ef

Browse files
committed
Replace deprecated set-output in workflows
1 parent e9caaa6 commit d1641ef

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ jobs:
2020

2121
- name: Get Go cache paths
2222
id: go-cache-paths
23+
shell: bash
2324
run: |
24-
echo "::set-output name=go-build::$(go env GOCACHE)"
25-
echo "::set-output name=go-mod::$(go env GOMODCACHE)"
25+
echo "go-build=$(go env GOCACHE)" >> $GITHUB_OUTPUT
26+
echo "go-mod=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
2627
2728
- name: Go build cache
2829
uses: actions/cache@v4

.github/workflows/test.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ jobs:
3939

4040
- name: Echo Go Cache Paths
4141
id: go-cache-paths
42+
shell: bash
4243
run: |
43-
echo "::set-output name=go-build::$(go env GOCACHE)"
44-
echo "::set-output name=go-mod::$(go env GOMODCACHE)"
44+
echo "go-build=$(go env GOCACHE)" >> $GITHUB_OUTPUT
45+
echo "go-mod=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
4546
4647
- name: Go Build Cache
4748
uses: actions/cache@v4

0 commit comments

Comments
 (0)