fixed switch rich text issue #296
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Automatically Sync PR with Base Branch | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Configure Git Identity | |
run: | | |
git config --global user.email "ci-build@aemforms" | |
git config --global user.name "ci-build" | |
- name: Sync with Base Branch | |
run: | | |
git fetch origin | |
git checkout ${{ github.event.pull_request.base.ref }} | |
git pull origin ${{ github.event.pull_request.base.ref }} | |
git checkout ${{ github.event.pull_request.head.ref }} | |
git pull origin ${{ github.event.pull_request.head.ref }} | |
git rebase ${{ github.event.pull_request.base.ref }} | |
git push --force origin ${{ github.event.pull_request.head.ref }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |