From 46bb3359cd4bedb45907590ed7f83116ef508168 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 | 14 ++++++++++++++ .github/workflows/sync-master.yml | 14 ++++++++++++++ 2 files changed, 28 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..6d3e37b --- /dev/null +++ b/.github/workflows/sync-main.yml @@ -0,0 +1,14 @@ +name: Sync main branch + +on: + push: + branches: + - master + +jobs: + mirror-to-main: + runs-on: ubuntu-latest + steps: + - uses: zofrex/mirror-branch@v1 + with: + target-branch: main diff --git a/.github/workflows/sync-master.yml b/.github/workflows/sync-master.yml new file mode 100644 index 0000000..047da6c --- /dev/null +++ b/.github/workflows/sync-master.yml @@ -0,0 +1,14 @@ +name: Sync master branch + +on: + push: + branches: + - main + +jobs: + mirror-to-main: + runs-on: ubuntu-latest + steps: + - uses: zofrex/mirror-branch@v1 + with: + target-branch: master