Skip to content

Commit

Permalink
Update entrypoint.sh to use new output method
Browse files Browse the repository at this point in the history
This fixes the following warning that is currently produced by this action:

```
Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands
```
  • Loading branch information
norwd authored Oct 31, 2022
1 parent c5d1720 commit 4cd0fbc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ if [ $? -ne 0 ]; then
exit 1
fi

echo "::set-output name=golint-output::Golint step succeed"
if [ -z "${GITHUB_OUTPUT}" ]; then
echo "::set-output name=golint-output::Golint step succeed"
else
echo "golint-output=Golint step succeed" >> "${GITHUB_OUTPUT}"
fi

0 comments on commit 4cd0fbc

Please sign in to comment.