mirror of
https://github.com/ludeeus/action-shellcheck.git
synced 2024-08-16 10:09:53 +02:00
Replace deprecated set-output (#70)
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
This commit is contained in:
parent
1c879e7d68
commit
9634fec4ed
1 changed files with 5 additions and 5 deletions
10
action.yaml
10
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
|
||||
|
|
Loading…
Reference in a new issue