File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 49
49
cp "${NEW_STATS_FILE}" "${PREV_STATS_FILE}"
50
50
fi
51
51
52
- ./.github/actions/pit-results-comment/stats-to-comment.sh "${PREV_STATS_FILE}" "${NEW_STATS_FILE}" "${{ inputs.prev-commit }}" > "${RESULTS_COMMENT_FILE}"
52
+ ./.github/actions/pit-results-comment/stats-to-comment.sh "${PREV_STATS_FILE}" "${NEW_STATS_FILE}" "${{ inputs.prev-commit }}" "${{ github.sha }}" > "${RESULTS_COMMENT_FILE}"
53
53
54
54
curl -X POST \
55
55
-H "Authorization: Bearer ${{ inputs.token }}" \
Original file line number Diff line number Diff line change 63
63
" ${1} " " ${2} " --raw-output
64
64
65
65
if [[ -n " ${3} " ]]; then
66
- cat << EOF
66
+ if [[ -n " ${4} " ]]; then
67
+ cat << EOF
67
68
68
69
Previous run: ${3}
69
70
EOF
71
+ else
72
+ cat << EOF
73
+
74
+ Previous run: ${3} - [Diff](/${GITHUB_REPOSITORY} /compare/${3} ...${4} )
75
+ EOF
76
+ fi
70
77
71
78
cat << EOF
72
79
You can’t perform that action at this time.
0 commit comments