Skip to content

Commit

Permalink
sync branch main with master on updates
Browse files Browse the repository at this point in the history
  • Loading branch information
travisperson committed Sep 21, 2021
1 parent fe56995 commit ce9e76d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/sync-master-main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: sync-master-main
on:
push:
branches:
- master
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: update remote branch main
run: |
git status
git rev-parse HEAD
# overrides the remote branch (origin:github) `main`
git push origin --force master:main

0 comments on commit ce9e76d

Please sign in to comment.