mirror of https://github.com/nextcloud/android
workflows: analysis: another attempt to fix checkout
Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
This commit is contained in:
parent
d2cb7e33b5
commit
421a672e1d
|
@ -17,19 +17,22 @@ jobs:
|
|||
# push
|
||||
echo "::set-output name=branch::$GITHUB_REF_NAME"
|
||||
echo "::set-output name=pr::$GITHUB_RUN_ID"
|
||||
echo "::set-output name=ref::$GITHUB_REF_NAME"
|
||||
else
|
||||
# pull request
|
||||
echo "::set-output name=branch::$GITHUB_HEAD_REF"
|
||||
echo "::set-output name=pr::${{ github.event.pull_request.number }}"
|
||||
echo "::set-output name=ref::refs/pull/${{ github.event.number }}/merge"
|
||||
fi
|
||||
- name: Show variables
|
||||
run: |
|
||||
echo "BRANCH: ${{ steps.get-vars.outputs.branch }}"
|
||||
echo "PR: ${{ steps.get-vars.outputs.pr }}"
|
||||
echo "REF: ${{ steps.get-vars.outputs.ref }}"
|
||||
echo "RUN NUMBER: $GITHUB_RUN_NUMBER"
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ steps.get-vars.outputs.branch }}
|
||||
ref: ${{ steps.get-vars.outputs.ref }}
|
||||
- name: Set up JDK 11
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
|
|
Loading…
Reference in New Issue