From b0045a910c5f0f0b0d4a4af474205c593818b299 Mon Sep 17 00:00:00 2001 From: Kevin Papst Date: Thu, 2 Dec 2021 13:06:23 +0100 Subject: [PATCH] prevent that lock files will be committed in PRs (#2983) --- .github/workflows/lockfiles.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/lockfiles.yaml diff --git a/.github/workflows/lockfiles.yaml b/.github/workflows/lockfiles.yaml new file mode 100644 index 00000000..f8e57f25 --- /dev/null +++ b/.github/workflows/lockfiles.yaml @@ -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