From 63bad28e2b33a1d0e7e6b8cea962c5cf9d3e82b6 Mon Sep 17 00:00:00 2001
From: Dmitriy Safronov <zimniy@cyberbrain.pw>
Date: Mon, 4 Mar 2024 18:53:46 +0300
Subject: [PATCH] Rebase on push to main branch

---
 .../rebase-on-push-to-main-branch.yaml          | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 .github/workflows/rebase-on-push-to-main-branch.yaml

diff --git a/.github/workflows/rebase-on-push-to-main-branch.yaml b/.github/workflows/rebase-on-push-to-main-branch.yaml
new file mode 100644
index 0000000..38ced83
--- /dev/null
+++ b/.github/workflows/rebase-on-push-to-main-branch.yaml
@@ -0,0 +1,17 @@
+---
+name: Rebase on push to main branch
+"on":
+  push:
+    branches: [main]
+jobs:
+  rebase:
+    name: Rebase on push to main branch
+    runs-on: ubuntu-latest
+    steps:
+      - name: Rebase all pull requests on push to the main branch
+        uses: peter-evans/rebase@v3
+        with:
+          base: main
+          exclude-drafts: true
+          exclude-labels: |
+            no-rebase
-- 
GitLab