From 219509dc2d7d9547651f1bea3ff07190388a7d71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moreno?= Date: Wed, 7 Apr 2021 09:04:14 +0200 Subject: [PATCH] fix yarn lock check --- .github/workflows/no-yarn-lock-changes.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/no-yarn-lock-changes.yml b/.github/workflows/no-yarn-lock-changes.yml index 075140f9ee4..3b0fa060c32 100644 --- a/.github/workflows/no-yarn-lock-changes.yml +++ b/.github/workflows/no-yarn-lock-changes.yml @@ -22,9 +22,9 @@ jobs: echo "::set-output name=should_run::${{ !contains(fromJson('["admin", "write"]'), fromJson(steps.get_permissions.outputs.data).permission) }}" - name: Get file changes uses: trilom/file-changes-action@ce38c8ce2459ca3c303415eec8cb0409857b4272 - if: ${{ steps.control.outputs.should_run }} + if: ${{ steps.control.outputs.should_run == "true" }} - name: Check for yarn.lock changes - if: ${{ steps.control.outputs.should_run }} + if: ${{ steps.control.outputs.should_run == "true" }} run: | - cat $HOME/files.json | jq -e '.[] | test("yarn\\.lock$") | not' \ + cat $HOME/files.json | jq -e 'any(test("yarn\\.lock$")) | not' \ || (echo "Changes to yarn.lock files aren't allowed in PRs." && exit 1)