Skip to content

Commit

Permalink
Merge pull request #5407 from XiangRongLin/ci_checkout_branch
Browse files Browse the repository at this point in the history
Checkout branch in CI process
  • Loading branch information
XiangRongLin committed Jan 16, 2021
2 parents 17746f3 + 4196891 commit 5b58850
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ jobs:
steps:
- 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
uses: actions/setup-java@v1.4.3
with:
Expand Down

0 comments on commit 5b58850

Please sign in to comment.