2023-08-29 00:40:49 +08:00
|
|
|
name: Merge branches
|
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- name: Checkout ${{ github.event.pull_request.base.ref || 'master' }}
|
2024-03-23 21:44:38 +08:00
|
|
|
uses: actions/checkout@v4
|
2023-08-29 00:40:49 +08:00
|
|
|
with:
|
|
|
|
ref: ${{ github.event.pull_request.base.ref || '' }}
|
|
|
|
fetch-depth: 0 # Fetch all history
|
|
|
|
- name: Merge pr-${{ github.event.number }} into ${{ github.event.pull_request.base.ref }}
|
|
|
|
if: github.event_name == 'pull_request'
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
git config user.name "BBB Automated Tests"
|
|
|
|
git config user.email "tests@bigbluebutton.org"
|
|
|
|
git config pull.rebase false
|
|
|
|
git pull origin pull/${{ github.event.number }}/head:${{ github.head_ref }}
|