We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 53e02d4 + 3022f03 commit c62bc12Copy full SHA for c62bc12
.github/workflows/compare-performance.yml
@@ -36,8 +36,11 @@ jobs:
36
steps:
37
# Repo is required to get the previous tag ref that is the base of the comparison on tag push triggered run.
38
- name: Checkout repository
39
- if: ${{ startsWith(github.ref, 'refs/tags/') }}
+ if: github.event_name == 'push'
40
uses: actions/checkout@v2
41
+ with:
42
+ # Parent commit is needed for determining the base ref on commit push trigg.
43
+ fetch-depth: 2
44
45
- name: Determine comparison ref
46
id: base-ref
@@ -60,7 +63,7 @@ jobs:
60
63
head -1
61
64
)"
62
65
else
- COMPARISON_REF="${{ github.event.before }}"
66
+ COMPARISON_REF="$(git rev-parse ${{ github.sha }}^)"
67
fi
68
69
if [[ "$COMPARISON_REF" == "" ]]; then
0 commit comments