This repository has been archived on 2024-09-09 . You can view files and clone it, but cannot push or open issues or pull requests.
3fce14fd56
15 lines
444 B
YAML
15 lines
444 B
YAML
name: Prevent yarn.lock changes in PRs
|
|||
on: [pull_request]
|
|||
|
|||
jobs:
|
|||
main:
|
|||
name: Prevent yarn.lock changes in PRs
|
|||
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)
|