prevent that lock files will be committed in PRs (#2983)

This commit is contained in:
Kevin Papst
2021-12-02 13:06:23 +01:00
committed by GitHub
parent 9491f07ade
commit b0045a910c

19
.github/workflows/lockfiles.yaml vendored Normal file
View 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