Skip to content

Commit

Permalink
Update sync-branches.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HardeepAsrani authored Jul 15, 2024
1 parent 221b71a commit 06dfda7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/sync-branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Sync branches
on:
push:
branches:
- 'master'
- 'main'
- 'development'
jobs:
sync-branch:
Expand All @@ -13,11 +13,11 @@ jobs:
- name: Retrieve branch name
id: retrieve-branch-name
run: echo "::set-output name=branch_name::$(REF=${GITHUB_HEAD_REF:-$GITHUB_REF} && echo ${REF#refs/heads/} | sed 's/\//-/g')"
- name: Merge master -> development
if: ${{ steps.retrieve-branch-name.outputs.branch_name == 'master' }}
- name: Merge main -> development
if: ${{ steps.retrieve-branch-name.outputs.branch_name == 'main' }}
uses: Codeinwp/merge-branch@master
with:
type: now
from_branch: master
from_branch: main
target_branch: development
github_token: ${{ secrets.BOT_TOKEN }}

0 comments on commit 06dfda7

Please sign in to comment.