Checkout branch in CI process for pull requests

This way the debug build app id contains the branch name again.
This commit is contained in:
XiangRongLin 2021-01-13 16:18:19 +01:00
parent 114806db55
commit 41968918bb
1 changed files with 5 additions and 0 deletions

View File

@ -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: