From 37217636886f2e9e292da03199423d1eb48ebc2d Mon Sep 17 00:00:00 2001 From: Giulio Moro Date: Fri, 31 Jan 2025 09:42:40 -0500 Subject: [PATCH] Added github action to keep legacy master branch up to date with latest main --- .github/workflows/main-to-master.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/main-to-master.yml diff --git a/.github/workflows/main-to-master.yml b/.github/workflows/main-to-master.yml new file mode 100644 index 0000000..9d9fab3 --- /dev/null +++ b/.github/workflows/main-to-master.yml @@ -0,0 +1,21 @@ +name: Build + +on: + push: + branches: + - main + +jobs: + update-legacy-master: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + - name: Push + run: | + git fetch --unshallow + git pull + git checkout master + git merge --ff main + git push origin