Skip to content

Commit

Permalink
feat: shellcheck workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp committed May 12, 2023
1 parent 22fb724 commit bd17f4e
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---

on: # yamllint disable-line rule:truthy
workflow_call:
inputs:
os:
description: The operating system to run the workflow on
required: true
type: string
default: ubuntu-latest
severity:
description: Severity level for shell-check
required: false
type: string
default: warning
secrets:
token:
description: Github token used to run this workflow
required: true
type: string

name: 🐞 Differential shell-check

jobs:
shellcheck:
runs-on: ${{ inputs.os }}
steps:
- name: 📦 Check out the codebase
uses: actions/checkout@v3

- name: 🐞 Differential shell-check
uses: redhat-plumbers-in-action/differential-shellcheck@v4
with:
severity: ${{ inputs.severity }}
token: ${{ secrets.token }}

...

0 comments on commit bd17f4e

Please sign in to comment.