From 7a80822a31851bb56ed920209450a4b1c120e8c4 Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Thu, 5 Sep 2024 18:52:12 +0900 Subject: [PATCH] ci: fix no-package-lock-changes.yml --- .github/workflows/no-package-lock-changes.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/no-package-lock-changes.yml b/.github/workflows/no-package-lock-changes.yml index 2b8925c15822d5..45d5d17407bf1f 100644 --- a/.github/workflows/no-package-lock-changes.yml +++ b/.github/workflows/no-package-lock-changes.yml @@ -23,9 +23,9 @@ jobs: echo "should_run=${{ !contains(fromJson('["admin", "maintain", "write"]'), fromJson(steps.get_permissions.outputs.data).permission) && github.event.pull_request.user.login != 'dependabot[bot]' }}" >> $GITHUB_OUTPUT - name: Get file changes uses: trilom/file-changes-action@ce38c8ce2459ca3c303415eec8cb0409857b4272 - #if: ${{ steps.control.outputs.should_run == 'true' }} + if: ${{ steps.control.outputs.should_run == 'true' }} - name: Check for lockfile changes - #if: ${{ steps.control.outputs.should_run == 'true' }} + if: ${{ steps.control.outputs.should_run == 'true' }} run: | cat $HOME/files.json | jq -e 'any(test("package-lock\\.json$|Cargo\\.lock$")) | not' \ || (echo "Changes to package-lock.json/Cargo.lock files aren't allowed in PRs." && exit 1)