Skip to content

Review changes from scripts-dev to scripts-adopter #1458

Review changes from scripts-dev to scripts-adopter

Review changes from scripts-dev to scripts-adopter #1458

Workflow file for this run

name: Shell Script Linter
on:
pull_request_target:
types:
- labeled
jobs:
lint:
name: Lint Shell Scripts
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install ShellCheck
run: sudo apt-get install shellcheck -y
- name: Check Label
id: label
run: echo "::set-output name=label::${{ github.event.label.name }}"
- name: Run ShellCheck
if: ${{ steps.label.outputs.label == 'ok-to-test' }}
run: shellcheck -e SC1090,SC1091 -f checkstyle **/*.sh | tee shellcheck.xml
- name: Upload ShellCheck Results
if: always()
uses: actions/upload-artifact@v4
with:
name: shellcheck-results
path: shellcheck.xml