Skip to content

Commit b631cb5

Browse files
authored
chore: update workflow files (#8001)
* chore: update workflow files * use bash shell for Windows job
1 parent 0a9f57e commit b631cb5

8 files changed

+14
-13
lines changed

.github/workflows/codeql-analysis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ jobs:
3939
# <https://markphelps.me/posts/speed-up-your-go-builds-with-actions-cache/>
4040
- id: go-cache-paths
4141
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
4444
4545
- uses: actions/cache@v3
4646
with:

.github/workflows/draft-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
id: check-commit-message
3535
if: steps.regex-match.outputs.group1 != ''
3636
run: |
37-
echo "::set-output name=applicable::true"
37+
echo "applicable=true" >> $GITHUB_OUTPUT
3838
echo "This is a release commit: ${{ steps.regex-match.outputs.group1 }}"
3939
outputs:
4040
applicable: ${{ steps.check-commit-message.outputs.applicable }}

.github/workflows/integration-darwin.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
# <https://markphelps.me/posts/speed-up-your-go-builds-with-actions-cache/>
3232
- id: go-cache-paths
3333
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
3636
3737
- uses: actions/cache@v3
3838
with:

.github/workflows/integration-linux.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ jobs:
3939
# <https://markphelps.me/posts/speed-up-your-go-builds-with-actions-cache/>
4040
- id: go-cache-paths
4141
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
4444
4545
- uses: actions/cache@v3
4646
with:

.github/workflows/integration-windows.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ jobs:
3131
# <https://markphelps.me/posts/speed-up-your-go-builds-with-actions-cache/>
3232
- id: go-cache-paths
3333
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
3637

3738
- uses: actions/cache@v3
3839
with:

.github/workflows/performance-comparison-label.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
body="${body//'%'/'%25'}"
3636
body="${body//$'\n'/'%0A'}"
3737
body="${body//$'\r'/'%0D'}"
38-
echo ::set-output name=body::$body
38+
echo "body=$body" >> $GITHUB_OUTPUT
3939
4040
- name: Create comment
4141
uses: peter-evans/create-or-update-comment@5adcb0bb0f9fb3f95ef05400558bdb3f329ee808

.github/workflows/performance-comparison.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
body="${body//'%'/'%25'}"
121121
body="${body//$'\n'/'%0A'}"
122122
body="${body//$'\r'/'%0D'}"
123-
echo ::set-output name=body::$body
123+
echo "body=$body" >> $GITHUB_OUTPUT
124124
125125
- name: Create comment
126126
uses: peter-evans/create-or-update-comment@5adcb0bb0f9fb3f95ef05400558bdb3f329ee808

.github/workflows/unit-tests-darwin.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
# <https://markphelps.me/posts/speed-up-your-go-builds-with-actions-cache/>
3131
- id: go-cache-paths
3232
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
3535
3636
- uses: actions/cache@v3
3737
with:

0 commit comments

Comments
 (0)