Skip to content

Commit

Permalink
feat: Use first 8 characters of SHA
Browse files Browse the repository at this point in the history
  • Loading branch information
jidicula committed Jul 24, 2022
1 parent 80e4560 commit 6b913f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ runs:
MESSAGE='Fuzz test failed on commit ${{ env.SHA }}. To troubleshoot locally, use the [GitHub CLI](https://cli.github.com) to download the seed corpus with\n```\ngh run download ${{ github.run_id }} -n testdata\n```'
DEEPLINK="https://github.com/${{ github.repository }}/commit/${{ env.SHA }}"
echo -e "${MESSAGE/${{ env.SHA }}/$DEEPLINK}"
echo -e "${MESSAGE/${{ env.SHA }}/[${{ env.SHA }}]($DEEPLINK)}" >> $GITHUB_STEP_SUMMARY
echo -e "${MESSAGE/${{ env.SHA }}/[${GITHUB_SHA:0:8}]($DEEPLINK)}" >> $GITHUB_STEP_SUMMARY
- name: Report failure
uses: actions/github-script@v6
if: failure() && github.event_name == 'pull_request'
Expand Down

0 comments on commit 6b913f0

Please sign in to comment.