chore(deps): update reviewdog/action-suggester action to v1.7.5 #282
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: shellcheck | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
shellcheck: | |
name: shellcheck with reviewdog | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: shfmt suggest | |
uses: reviewdog/[email protected] | |
with: | |
fail_on_error: true | |
shfmt_flags: '-ci' | |
- name: setup shellcheck | |
run: | | |
scversion="latest" | |
wget -qO- "https://github.com/koalaman/shellcheck/releases/download/${scversion?}/shellcheck-${scversion?}.linux.x86_64.tar.xz" | tar -xJv | |
sudo cp "shellcheck-${scversion}/shellcheck" /usr/local/bin/ | |
rm -rf "shellcheck-${scversion}" | |
- name: patch shellcheck suggest | |
run: | | |
shellcheck -f diff "$(find . -name 'compose-cd' -or -name '*.sh' -type f)" | patch -p1 | |
- name: shellcheck suggest | |
if: ${{ github.event_name }} == 'pull_request' | |
uses: reviewdog/[email protected] | |
with: | |
tool_name: shellcheck | |
- name: shellcheck(github-pr-review) | |
if: ${{ github.event_name }} == 'pull_request' | |
uses: reviewdog/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
filter_mode: added | |
fail_on_error: true | |
reporter: github-pr-check | |
pattern: | | |
*.sh | |
compose-cd | |
- name: shellcheck(github-pr-check) | |
if: ${{ github.event_name }} == 'pull_request' | |
uses: reviewdog/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
filter_mode: nofilter | |
fail_on_error: true | |
reporter: github-pr-check | |
pattern: | | |
*.sh | |
compose-cd | |
- name: shellcheck(github-check) | |
uses: reviewdog/[email protected] | |
if: github.event_name == 'push' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
filter_mode: nofilter | |
fail_on_error: true | |
reporter: github-check | |
pattern: | | |
*.sh | |
compose-cd |