Add master rebase to build workflow (#10888)

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
Satadru Pramanik, DO, MPH, MEng
2024-12-05 20:08:17 -05:00
committed by GitHub
parent 1bceb6dbe7
commit 17e1c5d447

View File

@@ -162,6 +162,16 @@ jobs:
clean: false
persist-credentials: true
ref: ${{ github.ref_name }}
- name: Rebase to Master
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git pull origin master --rebase
git commit -m "Rebase ${{ github.ref_name }} to master."
- name: Push rebase
uses: ad-m/github-push-action@master
with:
branch: ${{ github.ref_name }}
- name: Create Pull Request
env:
CREW_BRANCH: ${{ github.ref_name }}