From ae5d03652978396174335e9daea8cac6070e8b6a Mon Sep 17 00:00:00 2001 From: Daniel Kogler Date: Tue, 17 Sep 2024 13:30:08 -0700 Subject: [PATCH] Add workflow files --- .github/workflows/sync-main.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/sync-main.yml diff --git a/.github/workflows/sync-main.yml b/.github/workflows/sync-main.yml new file mode 100644 index 0000000..64500cd --- /dev/null +++ b/.github/workflows/sync-main.yml @@ -0,0 +1,27 @@ +name: Sync master with main + +on: + push: + branches: + - master + +permissions: + contents: write + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout master branch + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Update main branch + run: | + git checkout master + git fetch origin + git checkout main + git pull + git merge origin/master + git push origin main