.github/workflows/editorconfig.yml: skip when diff is empty
This commit is contained in:
parent
da65bc1c5b
commit
86c9e2c08e
1 changed files with 2 additions and 0 deletions
2
.github/workflows/editorconfig.yml
vendored
2
.github/workflows/editorconfig.yml
vendored
|
@ -12,6 +12,7 @@ jobs:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: technote-space/get-diff-action@v2.0.3
|
- uses: technote-space/get-diff-action@v2.0.3
|
||||||
- name: Fetch editorconfig-checker
|
- name: Fetch editorconfig-checker
|
||||||
|
if: env.GIT_DIFF
|
||||||
env:
|
env:
|
||||||
VERSION: "2.1.0"
|
VERSION: "2.1.0"
|
||||||
OS: "linux"
|
OS: "linux"
|
||||||
|
@ -22,6 +23,7 @@ jobs:
|
||||||
tar xzf ec-$OS-$ARCH.tar.gz && \
|
tar xzf ec-$OS-$ARCH.tar.gz && \
|
||||||
mv ./bin/ec-$OS-$ARCH ./bin/editorconfig-checker
|
mv ./bin/ec-$OS-$ARCH ./bin/editorconfig-checker
|
||||||
- name: Checking EditorConfig
|
- name: Checking EditorConfig
|
||||||
|
if: env.GIT_DIFF
|
||||||
run: |
|
run: |
|
||||||
./bin/editorconfig-checker -disable-indentation \
|
./bin/editorconfig-checker -disable-indentation \
|
||||||
${{ env.GIT_DIFF }}
|
${{ env.GIT_DIFF }}
|
||||||
|
|
Loading…
Reference in a new issue