build: check for cargo.lock changes in pr too (#187481)

* build: check for cargo.lock changes in pr too

* keep old name
This commit is contained in:
Connor Peet
2023-07-10 10:19:55 -07:00
committed by GitHub
parent 1c6225068b
commit 44d1d6a39c

View File

@@ -24,8 +24,8 @@ jobs:
- name: Get file changes
uses: trilom/file-changes-action@ce38c8ce2459ca3c303415eec8cb0409857b4272
if: ${{ steps.control.outputs.should_run == 'true' }}
- name: Check for yarn.lock changes
- name: Check for lockfile changes
if: ${{ steps.control.outputs.should_run == 'true' }}
run: |
cat $HOME/files.json | jq -e 'any(test("yarn\\.lock$")) | not' \
|| (echo "Changes to yarn.lock files aren't allowed in PRs." && exit 1)
cat $HOME/files.json | jq -e 'any(test("yarn\\.lock$|Cargo\\.lock$")) | not' \
|| (echo "Changes to yarn.lock/Cargo.lock files aren't allowed in PRs." && exit 1)