Add GitHub Workflow to mirror master and main branches

This commit is contained in:
Leo Balter 2020-07-13 13:04:54 -07:00
parent 59f5b49359
commit 31e88a860a
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
name: Mirror "master" and "main" branches
on:
push:
branches:
- master
- main
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Push
run: |
git push origin HEAD:master
git push origin HEAD:main