-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github/workflows: checkout action use head commit
- Loading branch information
Showing
3 changed files
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ jobs: | |
with: | ||
# Needed for commands that depend on git tags | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.sha } | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
|
@@ -68,6 +69,8 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
|
@@ -108,6 +111,7 @@ jobs: | |
with: | ||
# Needed for commands that depend on git tags | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.sha } | ||
- name: Cache binaries | ||
uses: actions/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters