Skip to content

Merge pull request #35 from nowsprinting/dependabot/github_actions/ac… #18

Merge pull request #35 from nowsprinting/dependabot/github_actions/ac…

Merge pull request #35 from nowsprinting/dependabot/github_actions/ac… #18

Workflow file for this run

name: Lint shell scripts
on:
push:
branches:
- master
paths:
- .github/workflows/shellcheck.yml
- '**.sh'
pull_request:
types: [ opened, synchronize, reopened ] # Same as default
paths:
- .github/workflows/shellcheck.yml
- '**.sh'
jobs:
shellcheck:
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
steps:
- uses: actions/checkout@v4
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
- uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,job,pullRequest
mention: here
if_mention: failure
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: failure() && github.repository_owner == 'nowsprinting' # Skip on public fork, because can not read secrets.