Skip to content

Bump Klintrup/simple-shell-syntax-check from 1 to 2 #7

Bump Klintrup/simple-shell-syntax-check from 1 to 2

Bump Klintrup/simple-shell-syntax-check from 1 to 2 #7

Workflow file for this run

name: lint
on:
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
sh:
name: simple-shell-syntax-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v41
with:
files: |
**.sh
- uses: Klintrup/simple-shell-syntax-check@v2.0.0
if: steps.changed-files.outputs.any_changed == 'true'
with:
files: ${{ steps.changed-files.outputs.all_changed_and_modified_files }}
shellcheck:
name: shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@2.0.0
prettier:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v41
with:
files: |
**.md
- name: Prettify code
if: steps.changed-files.outputs.any_changed == 'true'
uses: creyD/prettier_action@v4.3
with:
prettier_options: --write ${{ steps.changed-files.outputs.all_changed_files }}