diff options
| author | ST-DDT <[email protected]> | 2024-02-25 09:34:49 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-25 09:34:49 +0100 |
| commit | 260ffc6cc8ff2ead96aaa7ae8c55c94f43333156 (patch) | |
| tree | a04ee1729afa33c1aa09e02d2d5bf53a5c10a96a /.github | |
| parent | 4382fd9313821bf542829859e97d4422acc9e284 (diff) | |
| download | faker-260ffc6cc8ff2ead96aaa7ae8c55c94f43333156.tar.xz faker-260ffc6cc8ff2ead96aaa7ae8c55c94f43333156.zip | |
infra(ci): highlight preflight diff errors in github (#2684)
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/pr.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 6b913830..14aea7a3 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -46,7 +46,8 @@ jobs: id: diff run: | git add . - git diff --cached --exit-code + git diff --cached --name-only | sed -E 's/^(.*)$/::error file=\1,title=Diff detected::Please run `pnpm run preflight` and commit the changes./' + git diff --cached --name-only --exit-code continue-on-error: true - name: Transpile ts |
