bigbluebutton-Github/.github/actions/merge-branches/action.yml
Stefan Weil 38da48f347 Update more GitHub actions from v3 to v4
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-03-23 15:53:15 +01:00

20 lines
701 B
YAML

name: Merge branches
on:
workflow_call:
runs:
using: "composite"
steps:
- name: Checkout ${{ github.event.pull_request.base.ref || 'master' }}
uses: actions/checkout@v4
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 }}