From 2f79896db8af16663474297c9ba283b52ff4b54c Mon Sep 17 00:00:00 2001 From: Stephan Robotta Date: Thu, 25 Apr 2024 11:38:06 +0200 Subject: [PATCH] Github action to sync master and main --- .github/workflows/sync-main.yml | 13 +++++++++++++ .github/workflows/sync-master.yml | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/sync-main.yml create mode 100644 .github/workflows/sync-master.yml diff --git a/.github/workflows/sync-main.yml b/.github/workflows/sync-main.yml new file mode 100644 index 0000000..78ea621 --- /dev/null +++ b/.github/workflows/sync-main.yml @@ -0,0 +1,13 @@ +name: Sync main branch + +on: + push: + branches: + - master + +jobs: + steps: + - name: Check out branch to sync and rebase + run: | + git checkout main + git rebase master diff --git a/.github/workflows/sync-master.yml b/.github/workflows/sync-master.yml new file mode 100644 index 0000000..789e950 --- /dev/null +++ b/.github/workflows/sync-master.yml @@ -0,0 +1,13 @@ +name: Sync master branch + +on: + push: + branches: + - main + +jobs: + steps: + - name: Check out branch to sync and rebase + run: | + git checkout master + git rebase main