Skip to content

Commit f5e6c1d

Browse files
arunsathiyabsbodden
authored andcommitted
ci: Use GITHUB_OUTPUT envvar instead of set-output command
`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 7592eb2 commit f5e6c1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/version-and-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
run: |
1717
realversion="${GITHUB_REF/refs\/tags\//}"
1818
realversion="${realversion//v/}"
19-
echo "::set-output name=VERSION::$realversion"
19+
echo "VERSION=$realversion" >> "$GITHUB_OUTPUT"
2020
2121
- name: Set up publishing to maven central
2222
uses: actions/setup-java@v2

0 commit comments

Comments
 (0)