Skip to content

Commit

Permalink
Add a worklow to mirror changes to master
Browse files Browse the repository at this point in the history
  • Loading branch information
hileamlakB committed Jan 4, 2024
1 parent 470cd29 commit 69e063f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/sync-main-to-master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Sync Main to Master

on:
push:
branches:
- main

jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Git
run: |
git config --global user.name 'GitHub Action'
git config --global user.email 'action@github.com'
- name: Push Changes to Master
run: |
git fetch origin
git checkout master
git merge --ff-only origin/main
git push origin master

0 comments on commit 69e063f

Please sign in to comment.