mirror of
https://github.com/tabler/tabler.git
synced 2025-12-21 17:34:25 +04:00
fail PR if a lock file was changed (#1344)
This commit is contained in:
26
.github/workflows/lockfiles.yaml
vendored
Normal file
26
.github/workflows/lockfiles.yaml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Changed lock files
|
||||
on:
|
||||
pull_request: null
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
|
||||
permissions:
|
||||
pull-requests: read
|
||||
|
||||
jobs:
|
||||
lockfiles:
|
||||
runs-on: ubuntu-latest
|
||||
name: Verify lock file integrity
|
||||
steps:
|
||||
|
||||
- name: Clone Tabler
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Prevent lock file change
|
||||
uses: xalvarez/prevent-file-change-action@v1
|
||||
with:
|
||||
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||
pattern: Gemfile.lock|package-lock.json
|
||||
trustedAuthors: codecalm, dependabot
|
||||
Reference in New Issue
Block a user