Skip to content

Commit 9928ea0

Browse files
authored
ci: Use GITHUB_OUTPUT envvar instead of set-output command (#723)
`save-state` and `set-output` commands used in GitHub Actions are deprecated and [GitHub recommends using environment files](https://github.blog/changelog/2023-07-24-github-actions-update-on-save-state-and-set-output-commands/). This PR updates the usage of `::set-output` to `"$GITHUB_OUTPUT"` Instructions for envvar usage from GitHub docs: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter
1 parent b7400aa commit 9928ea0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
mkdir -p build
6161
echo "executing: go-msi make --msi $PWD/ntt.msi --out $PWD/build --version ${GITHUB_REF#refs/tags/}"
6262
go-msi make --msi "$PWD/ntt.msi" --out "$PWD/build" --version "${GITHUB_REF#refs/tags/}"
63-
printf "::set-output name=msi::%s\n" *.msi
63+
printf "msi=%s\n" *.msi >> "$GITHUB_OUTPUT"
6464
- name: Upload MSI
6565
run: |
6666
$env:PATH += ";C:\hub\bin"

0 commit comments

Comments
 (0)