Skip to content

Commit

Permalink
chore: add action to sync branches when commits are pushed to main
Browse files Browse the repository at this point in the history
  • Loading branch information
alycejenni committed Apr 4, 2023
1 parent 181b77e commit 689cb43
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Sync branches

on:
push:
branches:
- main

jobs:
sync-branches:
runs-on: ubuntu-latest
name: "Sync dev and patch branches to latest commit"
steps:
- name: Check out
uses: actions/checkout@v3
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
fetch-depth: 0
- name: Sync dev branch
uses: connor-baer/action-sync-branch@main
with:
branch: dev
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Sync patch branch
uses: connor-baer/action-sync-branch@main
with:
branch: patch
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

0 comments on commit 689cb43

Please sign in to comment.