chore(CI): checkout the head commit instead of using the default merge ref
This commit is contained in:
committed by
borgmanJeremy
parent
a2f845415c
commit
eae9c97b23
8
.github/workflows/Windows-pack.yml
vendored
8
.github/workflows/Windows-pack.yml
vendored
@@ -52,11 +52,19 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout Source code
|
||||
if: github.event_name == 'push'
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: master
|
||||
|
||||
- name: Checkout Source code
|
||||
if: github.event_name == 'pull_request'
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
|
||||
- name: Set env & Print flameshot version
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user