CON-1836 Markdown Fix Virtualisation Linux Project #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: π GA-Misc - ShellCheck | |
on: | |
pull_request: | |
paths-ignore: | |
- '.github/**' | |
types: [opened, reopened, synchronize] | |
jobs: | |
GA-Misc-Check-ShellCheck: | |
name: π Run ShellCheck | |
runs-on: ubuntu-latest | |
steps: | |
- name: π§ Check out repository code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: π Get all changed SHELL files | |
id: changed-file-list | |
run: | | |
echo "changed_files=$(git diff --name-only --diff-filter=ACMRT --merge-base origin/master | grep -E "\.sh$" | xargs)" >> $GITHUB_OUTPUT | |
- name: π§ββοΈ Run Format checks | |
if: steps.changed-file-list.outputs.changed_files != '' | |
run: | | |
npm i -g shellcheck | |
npx shellcheck ${{ steps.changed-file-list.outputs.changed_files }} |