From 9634fec4edda42bb6b9116e4c653e49ad304793c Mon Sep 17 00:00:00 2001 From: Matthew Boston Date: Sun, 6 Nov 2022 11:52:23 -0700 Subject: [PATCH] Replace deprecated set-output (#70) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Joakim Sørensen --- action.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/action.yaml b/action.yaml index 3396910..c0a50f9 100644 --- a/action.yaml +++ b/action.yaml @@ -97,7 +97,7 @@ runs: options+=("-S ${{ inputs.severity }}") fi options+=("--format=${{ inputs.format }}") - echo "::set-output name=options::${options[@]}" + echo "options=${options[@]}" >> $GITHUB_OUTPUT - name: Gather excluded paths shell: bash @@ -130,7 +130,7 @@ runs: echo "::debug:: Adding '$name' to excludes" excludes+=("! -name $name") done - echo "::set-output name=excludes::${excludes[@]}" + echo "excludes=${excludes[@]}" >> $GITHUB_OUTPUT set +f # re-enable globbing @@ -143,7 +143,7 @@ runs: echo "::debug:: Adding '$file' to excludes" files+=("-o -name \"*$file\"") done - echo "::set-output name=files::${files[@]}" + echo "files=${files[@]}" >> $GITHUB_OUTPUT - name: Run the check shell: bash @@ -210,8 +210,8 @@ runs: done fi - echo "::set-output name=filepaths::${filepaths[@]}" - echo "::set-output name=statuscode::$statuscode" + echo "filepaths=${filepaths[@]}" >> $GITHUB_OUTPUT + echo "statuscode=$statuscode" >> $GITHUB_OUTPUT - name: Exit action shell: bash