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
```
This commit is contained in:
Thales Macedo Garitezi 2022-05-26 13:56:09 -03:00
parent 4a8f74f913
commit e8d37a26da
No known key found for this signature in database
GPG Key ID: DD279F8152A9B6DD
1 changed files with 3 additions and 4 deletions

View File

@ -10,12 +10,12 @@ jobs:
- uses: actions/checkout@v2
with:
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
run: |
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
run: |
mix format --check-formatted
@ -27,4 +27,3 @@ jobs:
- name: Run elvis check
run: |
./scripts/elvis-check.sh $GITHUB_BASE_REF