1
0
mirror of https://github.com/coder/code-server.git synced 2024-12-04 23:03:06 +08:00
code-server/lib/vscode/.github/workflows/no-yarn-lock-changes.yml
2021-04-09 11:32:27 +05:30

15 lines
478 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@ce38c8ce2459ca3c303415eec8cb0409857b4272
- 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)