[PATCH] D91554: GitHub Actions: Add job for automatically updating the main branch
Tom Stellard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 16 11:07:55 PST 2020
tstellar created this revision.
tstellar added a reviewer: sqlbyme.
Herald added a project: LLVM.
tstellar requested review of this revision.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D91554
Files:
.github/workflows/main-branch-sync.yml
Index: .github/workflows/main-branch-sync.yml
===================================================================
--- /dev/null
+++ .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 at v2
+ with:
+ fetch-depth: 0
+
+ - name: Update branch
+ run: |
+ git push https://${{ github.token }}@github.com/${{ github.repository }} HEAD:temp-test-main
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91554.305564.patch
Type: text/x-patch
Size: 582 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201116/c0e4076d/attachment.bin>
More information about the llvm-commits
mailing list