Skip to content

Commit d8a2de0

Browse files
committed
Fetch all branches and tags to support git tests, and explicitly checkout master branch so that it is available in the local repo
1 parent 71cf706 commit d8a2de0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ jobs:
1111
steps:
1212
- name: Checkout repository
1313
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
- run: |
17+
git fetch origin master
18+
git checkout -b master
19+
git checkout ${{ github.event.pull_request.head.sha }}
1420
- name: Set up JDK 1.8
1521
uses: actions/setup-java@v1
1622
with:

0 commit comments

Comments
 (0)