2022-03-22 11:03:15 -04:00
|
|
|
name: Shellcheck
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2022-09-03 11:47:47 -04:00
|
|
|
paths:
|
|
|
|
- "**.sh"
|
2022-03-22 11:03:15 -04:00
|
|
|
pull_request:
|
2022-09-03 11:47:47 -04:00
|
|
|
paths:
|
|
|
|
- "**.sh"
|
2022-03-22 11:03:15 -04:00
|
|
|
|
2022-06-30 05:27:23 -04:00
|
|
|
# Abort runs of *this* workflow, if a new commit with the same ref is pushed.
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
2022-08-03 10:01:36 -04:00
|
|
|
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
2022-06-30 05:27:23 -04:00
|
|
|
|
2022-03-22 11:03:15 -04:00
|
|
|
jobs:
|
|
|
|
shellcheck:
|
|
|
|
name: Shellcheck
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-07-20 04:48:01 -04:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
2022-09-19 04:59:46 -04:00
|
|
|
with:
|
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
|
2022-06-30 05:27:23 -04:00
|
|
|
- name: Run ShellCheck
|
2022-08-12 04:20:19 -04:00
|
|
|
uses: ludeeus/action-shellcheck@203a3fd018dfe73f8ae7e3aa8da2c149a5f41c33
|
2022-06-30 05:27:23 -04:00
|
|
|
with:
|
|
|
|
severity: error
|
2022-08-12 04:20:19 -04:00
|
|
|
ignore_paths: charts/cilium
|