-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add action to sync branches when commits are pushed to main
- Loading branch information
1 parent
c7e882f
commit cb2b357
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |