Skip to content

Commit

Permalink
.github/workflows: checkout action use head commit
Browse files Browse the repository at this point in the history
  • Loading branch information
yondonfu committed May 17, 2021
1 parent b933f4b commit 3652159
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
with:
# Needed for commands that depend on git tags
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Set global environment variables
run: |
echo "PKG_CONFIG_PATH=/root/compiled/lib/pkgconfig" >> $GITHUB_ENV
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
- name: configure git line endings
run: git config --global core.autocrlf false
- uses: actions/checkout@v1
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup Msys2 environment
uses: msys2/setup-msys2@v2
with:
Expand Down

0 comments on commit 3652159

Please sign in to comment.