diff --git a/.github/workflows/merge-freeze.yml b/.github/workflows/merge-freeze.yml new file mode 100644 index 0000000..626b171 --- /dev/null +++ b/.github/workflows/merge-freeze.yml @@ -0,0 +1,18 @@ +name: Merge Freeze Enforcement +on: + pull_request: + types: [opened, reopened, synchronize] + +jobs: + check-freeze: + runs-on: ubuntu-latest + steps: + - name: Check if merge freeze is active + run: | + if [[ "${{ secrets.MERGE_FREEZE }}" == "true" ]]; then + echo "Merge freeze is active. Blocking merge." + exit 1 + else + echo "Merge freeze not active. PR merge allowed." + fi + diff --git a/file10.txt b/file10.txt index 641a486..a3bce3c 100644 --- a/file10.txt +++ b/file10.txt @@ -3,3 +3,5 @@ content of file 10. I file file 10 a lot. I changed evrything here as bulk + +ASdsd diff --git a/file2.txt b/file2.txt index c03716c..5b7be3a 100644 --- a/file2.txt +++ b/file2.txt @@ -1,3 +1,6 @@ This is the secnd file. + + +This is a direct push \ No newline at end of file