From fabbea2be364329a8f94e3924743601e8fd843af Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 4 Nov 2020 11:01:23 +0100 Subject: [PATCH] Ignore changes to package-lock.json in workflows --- .github/workflows/codestyle.yml | 7 +++++-- .github/workflows/typescript.yml | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index 7114104f3f..61ecf78d3f 100644 --- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -21,9 +21,12 @@ jobs: steps: - uses: actions/checkout@v2 - run: npm install - - run: | + - name: Run prettier + run: | shopt -s globstar npx prettier -w wcfsetup/install/files/ts/**/*.ts - run: echo "::add-matcher::.github/diff.json" - - run: | + - name: Show diff + run: | + git checkout -- package-lock.json git diff --exit-code diff --git a/.github/workflows/typescript.yml b/.github/workflows/typescript.yml index 03ab368202..c769fed4cb 100644 --- a/.github/workflows/typescript.yml +++ b/.github/workflows/typescript.yml @@ -51,5 +51,7 @@ jobs: - run: npm install - run: npx tsc - run: echo "::add-matcher::.github/diff.json" - - run: | + - name: Show diff + run: | + git checkout -- package-lock.json git diff --exit-code -- 2.20.1