This commit is contained in:
41
.gitea/workflows/shellcheck.yml
Normal file
41
.gitea/workflows/shellcheck.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
name: ShellCheck
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
paths-ignore:
|
||||
- '**.gitignore'
|
||||
- '**.md'
|
||||
- 'LICENSE'
|
||||
- '**.conf'
|
||||
- '**.service'
|
||||
- '**.timer'
|
||||
- '**.path'
|
||||
- '**.list'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '**.gitignore'
|
||||
- '**.md'
|
||||
- 'LICENSE'
|
||||
- '**.conf'
|
||||
- '**.service'
|
||||
- '**.timer'
|
||||
- '**.path'
|
||||
- '**.list'
|
||||
|
||||
jobs:
|
||||
shellcheck:
|
||||
name: Shell syntax checker
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Run ShellCheck
|
||||
uses: ludeeus/action-shellcheck@master
|
||||
env:
|
||||
SHELLCHECK_OPTS: -e SC3040
|
Reference in New Issue
Block a user