prevent that lock files will be committed in PRs (#2983)
This commit is contained in:
19
.github/workflows/lockfiles.yaml
vendored
Normal file
19
.github/workflows/lockfiles.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
name: Check .lock files
|
||||||
|
on:
|
||||||
|
pull_request: null
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
lockfiles:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Verify lock file integrity
|
||||||
|
if: ${{ github.actor != 'kevinpapst' && github.actor != 'dependabot[bot]' }}
|
||||||
|
steps:
|
||||||
|
- name: Clone Kimai
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Prevent file change
|
||||||
|
uses: xalvarez/prevent-file-change-action@v1
|
||||||
|
with:
|
||||||
|
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
pattern: .*.lock
|
||||||
Reference in New Issue
Block a user