2022-03-22 15:03:15 +00:00
|
|
|
name: Shellcheck
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2022-09-03 15:47:47 +00:00
|
|
|
paths:
|
|
|
|
- "**.sh"
|
2022-03-22 15:03:15 +00:00
|
|
|
pull_request:
|
2022-09-03 15:47:47 +00:00
|
|
|
paths:
|
|
|
|
- "**.sh"
|
2022-03-22 15:03:15 +00:00
|
|
|
|
2022-06-30 09:27:23 +00: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 14:01:36 +00:00
|
|
|
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
2022-06-30 09:27:23 +00:00
|
|
|
|
2022-03-22 15:03:15 +00:00
|
|
|
jobs:
|
|
|
|
shellcheck:
|
|
|
|
name: Shellcheck
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-07-20 08:48:01 +00:00
|
|
|
- name: Checkout
|
2022-10-05 07:24:36 +00:00
|
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
2022-09-19 08:59:46 +00:00
|
|
|
with:
|
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
|
2022-06-30 09:27:23 +00:00
|
|
|
- name: Run ShellCheck
|
2022-08-12 08:20:19 +00:00
|
|
|
uses: ludeeus/action-shellcheck@203a3fd018dfe73f8ae7e3aa8da2c149a5f41c33
|
2022-06-30 09:27:23 +00:00
|
|
|
with:
|
|
|
|
severity: error
|
2022-08-12 08:20:19 +00:00
|
|
|
ignore_paths: charts/cilium
|