Skip to content

Commit

Permalink
Don't put the config download in a fold
Browse files Browse the repository at this point in the history
  • Loading branch information
nebularg committed Sep 17, 2020
1 parent 78fb1a2 commit e9c3861
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ inputs:
runs:
using: composite
steps:
- name: Install luacheck
run: |
- run: |
echo "##[group]Install luacheck"
if ! hash luacheck &>/dev/null; then
sudo apt-get install -yq luarocks 1>/dev/null || exit 1
Expand All @@ -44,16 +43,14 @@ runs:
luacheck --version
echo "##[endgroup]"
shell: bash
- name: Install .luacheckrc
run: |
- run: |
[ -z "${{ inputs.config }}" ] && exit 0
echo "##[group]Install .luacheckrc"
mkdir -p ~/.config/luacheck
echo "##[command]curl -fsSL ${{ inputs.config }}"
curl -fsSL ${{ inputs.config }} > ~/.config/luacheck/.luacheckrc
echo "##[endgroup]"
curl -fsSL "${{ inputs.config }}" -o ~/.config/luacheck/.luacheckrc || {
echo "Unable to download \"${{ inputs.config }}\"" >&2
exit 1
}
shell: bash
- name: Run luacheck
run: luacheck ${{ inputs.args }} -- ${{ inputs.files }}
- run: luacheck ${{ inputs.args }} -- ${{ inputs.files }}
working-directory: ${{ inputs.path }}
shell: bash

0 comments on commit e9c3861

Please sign in to comment.