Skip to content

Commit 6e1abab

Browse files
Update ::set-output invocations (now deprecated) to use environment files instead
See <https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/> for more details.
1 parent 9fb75aa commit 6e1abab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ runs:
120120
IFS=$'\n'
121121
INPUT_PATHS=(${{ inputs.input-paths }})
122122
{ diktat --no-download-progress --verbose "${DIKTAT_ARGS[@]}" "${INPUT_PATHS[@]}" | tee diktat.log; } && exit_code=$? || exit_code=$?
123-
echo "::set-output name=summary-line::$(tail -n1 diktat.log 2>/dev/null)"
123+
echo "summary-line=$(tail -n1 diktat.log 2>/dev/null)" >>$GITHUB_OUTPUT
124124
rm -f diktat.log
125-
echo "::set-output name=exit-code::${exit_code}"
125+
echo "exit-code=${exit_code}" >>$GITHUB_OUTPUT
126126
env:
127127
GITHUB_TOKEN: ${{ github.token }}
128128
shell: bash

0 commit comments

Comments
 (0)