From bffa740d0deabb72e01f5a70fda8b1497516a511 Mon Sep 17 00:00:00 2001 From: Julia Pampus <72392527+juliapampus@users.noreply.github.com> Date: Wed, 7 Feb 2024 17:11:44 +0100 Subject: [PATCH] chore: add GH action to check changes to release files (#211) --- .github/workflows/prevent-file-changes.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/prevent-file-changes.yml diff --git a/.github/workflows/prevent-file-changes.yml b/.github/workflows/prevent-file-changes.yml new file mode 100644 index 00000000..e0bff8dd --- /dev/null +++ b/.github/workflows/prevent-file-changes.yml @@ -0,0 +1,18 @@ +name: Prevent Changes to Release Files + +on: + pull_request: + types: [ opened ] + pull_request_target: + types: [ opened ] + +jobs: + check: + runs-on: ubunut-latest + steps: + - name: Prevent file change + uses: xalvarez/prevent-file-change-action@v1 + with: + githubToken: ${{ secrets.GITHUB_TOKEN }} + pattern: releases/.* + allowNewFiles: true \ No newline at end of file