mirror of
https://github.com/Microsoft/vscode
synced 2024-10-12 22:37:41 +00:00
14 lines
403 B
YAML
14 lines
403 B
YAML
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)
|