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