From da886bf471e7a2b060c6cb07e2a4678598aee5b6 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 16 Nov 2020 11:06:58 -0800 Subject: [PATCH] GitHub Actions: Add job for automatically updating the main branch Differential Revision: https://reviews.llvm.org/D91554 --- .github/workflows/main-branch-sync.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/main-branch-sync.yml diff --git a/.github/workflows/main-branch-sync.yml b/.github/workflows/main-branch-sync.yml new file mode 100644 index 000000000000..783c85041a1e --- /dev/null +++ b/.github/workflows/main-branch-sync.yml @@ -0,0 +1,19 @@ +name: main branch sync + +on: + push: + branches: + - 'master' + +jobs: + branch_sync: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Update branch + run: | + git push https://${{ github.token }}@github.com/${{ github.repository }} HEAD:temp-test-main