chore(CI): checkout the head commit instead of using the default merge ref

This commit is contained in:
Ahmed Zetao Yang
2020-10-10 11:01:09 +08:00
committed by borgmanJeremy
parent a2f845415c
commit eae9c97b23
4 changed files with 67 additions and 2 deletions

View File

@@ -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: |