diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index a860e89ef..77d6d2f35 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -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 }}