Skip to content

chore(deps): update softprops/action-gh-release action to v2 #373

chore(deps): update softprops/action-gh-release action to v2

chore(deps): update softprops/action-gh-release action to v2 #373

Workflow file for this run

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