From 6e1abab6b924efcda29bf0de9c2eadd8005fee37 Mon Sep 17 00:00:00 2001 From: Andrey Shcheglov Date: Thu, 10 Nov 2022 20:19:55 +0300 Subject: [PATCH] Update ::set-output invocations (now deprecated) to use environment files instead See for more details. --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 0b620be..c450a80 100644 --- a/action.yml +++ b/action.yml @@ -120,9 +120,9 @@ runs: IFS=$'\n' INPUT_PATHS=(${{ inputs.input-paths }}) { diktat --no-download-progress --verbose "${DIKTAT_ARGS[@]}" "${INPUT_PATHS[@]}" | tee diktat.log; } && exit_code=$? || exit_code=$? - echo "::set-output name=summary-line::$(tail -n1 diktat.log 2>/dev/null)" + echo "summary-line=$(tail -n1 diktat.log 2>/dev/null)" >>$GITHUB_OUTPUT rm -f diktat.log - echo "::set-output name=exit-code::${exit_code}" + echo "exit-code=${exit_code}" >>$GITHUB_OUTPUT env: GITHUB_TOKEN: ${{ github.token }} shell: bash