Explorar o código

fix(ci): run workaround before starting

line-break check was failing before:

```
Run ./scripts/check-nl-at-eof.sh
  ./scripts/check-nl-at-eof.sh
  shell: sh -e {0}
fatal: unsafe repository ('/__w/emqx/emqx' is owned by someone else)
To add an exception for this directory, call:

	git config --global --add safe.directory /__w/emqx/emqx
```
Thales Macedo Garitezi %!s(int64=3) %!d(string=hai) anos
pai
achega
e8d37a26da
Modificáronse 1 ficheiros con 3 adicións e 4 borrados
  1. 3 4
      .github/workflows/code_style_check.yaml

+ 3 - 4
.github/workflows/code_style_check.yaml

@@ -10,12 +10,12 @@ jobs:
       - uses: actions/checkout@v2
       - uses: actions/checkout@v2
         with:
         with:
           fetch-depth: 1000
           fetch-depth: 1000
-      - name: Check line-break at EOF
-        run: |
-          ./scripts/check-nl-at-eof.sh
       - name: Work around https://github.com/actions/checkout/issues/766
       - name: Work around https://github.com/actions/checkout/issues/766
         run: |
         run: |
           git config --global --add safe.directory "$GITHUB_WORKSPACE"
           git config --global --add safe.directory "$GITHUB_WORKSPACE"
+      - name: Check line-break at EOF
+        run: |
+          ./scripts/check-nl-at-eof.sh
       - name: Check Elixir code formatting
       - name: Check Elixir code formatting
         run: |
         run: |
           mix format --check-formatted
           mix format --check-formatted
@@ -27,4 +27,3 @@ jobs:
       - name: Run elvis check
       - name: Run elvis check
         run: |
         run: |
           ./scripts/elvis-check.sh $GITHUB_BASE_REF
           ./scripts/elvis-check.sh $GITHUB_BASE_REF
-