Skip to content

Commit

Permalink
[repo] keep master in sync with main
Browse files Browse the repository at this point in the history
Add an action to keep the old master branch up to date with main.
  • Loading branch information
Travis Raines authored and rainest committed Mar 30, 2021
1 parent f79b1bc commit 39b8355
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/master-mirrors-main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'sync master with main'

on:
push:
branches:
- 'main'

jobs:
push-master:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Push HEAD to master
# Deliberately not force-pushing: designed to fail if this would mean rewriting history
run: |
git push origin HEAD:master

0 comments on commit 39b8355

Please sign in to comment.