From d8aadf7dfadbcef182bec3719bcf9539176cfcef Mon Sep 17 00:00:00 2001 From: Ruben van der Linde Date: Thu, 21 Nov 2024 22:04:11 +0100 Subject: [PATCH] Hotfix/disable-branche-protection Temporarily disable branche protections since it breaks the release workflow --- .../pull-request-from-branch-check.yaml | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pull-request-from-branch-check.yaml b/.github/workflows/pull-request-from-branch-check.yaml index 77d1970..401de61 100644 --- a/.github/workflows/pull-request-from-branch-check.yaml +++ b/.github/workflows/pull-request-from-branch-check.yaml @@ -1,18 +1,18 @@ name: Main Branch Protection -on: - pull_request: - branches: - - main +#on: +# pull_request: +# branches: +# - main -jobs: - check-branch: - runs-on: ubuntu-latest - steps: - - name: Check branch - run: | - if [[ ${GITHUB_HEAD_REF} != development ]] && [[ ${GITHUB_HEAD_REF} != documentation ]] && ! [[ ${GITHUB_HEAD_REF} =~ ^hotfix/ ]]; - then - echo "Error: Pull request must come from 'development', 'documentation' or 'hotfix/' branch" - exit 1 - fi +#jobs: +# check-branch: +# runs-on: ubuntu-latest +# steps: +# - name: Check branch +# run: | +# if [[ ${GITHUB_HEAD_REF} != development ]] && [[ ${GITHUB_HEAD_REF} != documentation ]] && ! [[ ${GITHUB_HEAD_REF} =~ ^hotfix/ ]]; +# then +# echo "Error: Pull request must come from 'development', 'documentation' or 'hotfix/' branch" +# exit 1 +# fi