Merge pull request #94575 from zowoq/ecc-actions

.github/workflows/editorconfig.yml: separate fetch and check steps
This commit is contained in:
Martin Weinelt 2020-08-03 17:03:50 +02:00 committed by GitHub
commit f2848673ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 3 deletions

View File

@ -13,12 +13,17 @@ jobs:
with: with:
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: Checking EditorConfig - name: fetch editorconfig-checker
env: env:
VERSION: "2.1.0" VERSION: "2.1.0"
OS: "linux" OS: "linux"
ARCH: "amd64" ARCH: "amd64"
ECC_URL: "https://github.com/editorconfig-checker/editorconfig-checker/releases/download"
run: | run: |
curl -sSf -O -L -C - https://github.com/editorconfig-checker/editorconfig-checker/releases/download/$VERSION/ec-$OS-$ARCH.tar.gz && \ curl -sSf -O -L -C - $ECC_URL/$VERSION/ec-$OS-$ARCH.tar.gz && \
tar xzf ec-$OS-$ARCH.tar.gz && \ tar xzf ec-$OS-$ARCH.tar.gz && \
./bin/ec-$OS-$ARCH -disable-indentation ${{ env.GIT_DIFF }} mv ./bin/ec-$OS-$ARCH ./bin/editorconfig-checker
- name: Checking EditorConfig
run: |
./bin/editorconfig-checker -disable-indentation \
${{ env.GIT_DIFF }}