mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
validate yarn.lock changes in PRs
This commit is contained in:
parent
1a016a67b2
commit
76e6174c90
13
.github/workflows/no-yarn-lock-changes.yml
vendored
Normal file
13
.github/workflows/no-yarn-lock-changes.yml
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
name: "Prevent yarn.lock changes in PRs"
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
main:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- id: file_changes
|
||||
uses: trilom/file-changes-action@v1.2.4
|
||||
- name: Check for yarn.lock changes
|
||||
run: |
|
||||
cat $HOME/files.json | jq -e '.[] | test("yarn\\.lock$") | not' \
|
||||
|| (echo "Changes to yarn.lock files aren't allowed in PRs." && exit 1)
|
Loading…
Reference in a new issue