Merge pull request #5407 from XiangRongLin/ci_checkout_branch

Checkout branch in CI process
This commit is contained in:
XiangRongLin 2021-01-16 07:53:31 +01:00 committed by GitHub
commit 5b58850c31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,11 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: create and checkout branch
# push events already checked out the branch
if: github.event_name == 'pull_request'
run: git checkout -B ${{ github.head_ref }}
- name: set up JDK 1.8 - name: set up JDK 1.8
uses: actions/setup-java@v1.4.3 uses: actions/setup-java@v1.4.3
with: with: