Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit 2d80031

Browse files
committed
add github actions for push event
1 parent a743ba3 commit 2d80031

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: ShellCheck/push
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2.2.0
14+
- name: Get Diff Action
15+
uses: technote-space/get-diff-action@v1.2.8
16+
with:
17+
SUFFIX_FILTER: .sh
18+
- name: Install ShellCheck
19+
run: |
20+
sudo apt-get install shellcheck
21+
if: env.GIT_DIFF
22+
- name: Lint with ShellCheck
23+
run: |
24+
shellcheck --shell=bash -x ${{ env.GIT_DIFF }}
25+
if: env.GIT_DIFF

0 commit comments

Comments
 (0)