Skip to content

Commit

Permalink
Merge pull request #553 from actiontech/check-pr-files
Browse files Browse the repository at this point in the history
add workflow to check files changed in pr
  • Loading branch information
sjjian authored May 25, 2022
2 parents ef38f2d + 8484309 commit 4438927
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/check-pr-files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: prevent-file-change
on:
pull_request:
branches:
- '*-ee'
jobs:
prevent-file-change:
if: github.head_ref != 'main' && !startsWith(github.head_ref, 'release')
runs-on: ubuntu-latest
steps:
- uses: xalvarez/prevent-file-change-action@v1
name: Prevent file change
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
pattern: ^(?!.*_ee\.go$)(?!.*_ee_test\.go$)(?!.*_rel\.go$)(?!.*_rel_test\.go$)(?!go\.mod$)(?!go\.sum$)(?!\.github\/workflows\/check-pr-files\.yml$).*
trustedAuthors: xalvarez

0 comments on commit 4438927

Please sign in to comment.