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 }}")
|
options+=("-S ${{ inputs.severity }}")
|
||||||
fi
|
fi
|
||||||
options+=("--format=${{ inputs.format }}")
|
options+=("--format=${{ inputs.format }}")
|
||||||
echo "::set-output name=options::${options[@]}"
|
echo "options=${options[@]}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Gather excluded paths
|
- name: Gather excluded paths
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -130,7 +130,7 @@ runs:
|
||||||
echo "::debug:: Adding '$name' to excludes"
|
echo "::debug:: Adding '$name' to excludes"
|
||||||
excludes+=("! -name $name")
|
excludes+=("! -name $name")
|
||||||
done
|
done
|
||||||
echo "::set-output name=excludes::${excludes[@]}"
|
echo "excludes=${excludes[@]}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
set +f # re-enable globbing
|
set +f # re-enable globbing
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ runs:
|
||||||
echo "::debug:: Adding '$file' to excludes"
|
echo "::debug:: Adding '$file' to excludes"
|
||||||
files+=("-o -name \"*$file\"")
|
files+=("-o -name \"*$file\"")
|
||||||
done
|
done
|
||||||
echo "::set-output name=files::${files[@]}"
|
echo "files=${files[@]}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Run the check
|
- name: Run the check
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -210,8 +210,8 @@ runs:
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "::set-output name=filepaths::${filepaths[@]}"
|
echo "filepaths=${filepaths[@]}" >> $GITHUB_OUTPUT
|
||||||
echo "::set-output name=statuscode::$statuscode"
|
echo "statuscode=$statuscode" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Exit action
|
- name: Exit action
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Loading…
Reference in a new issue