Skip to content

Commit

Permalink
Use github.server_url property (#141)
Browse files Browse the repository at this point in the history
Instead of hardcoding the GitHub URL, instead pull in the server URL from the `github` object.
  • Loading branch information
jidicula committed Mar 15, 2023
1 parent 81356ae commit 5f50b5f
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 @@ -47,6 +47,6 @@ runs:
- name: Report failure in job summary
if: failure()
run: |
DEEPLINK="https://github.com/${{ github.repository }}/commit/${{ env.SHA }}"
DEEPLINK="${{ github.server_url }}/${{ github.repository }}/commit/${{ env.SHA }}"
echo -e "Format check failed on commit [${GITHUB_SHA:0:8}]($DEEPLINK) with files:\n$(<$GITHUB_WORKSPACE/failing-files.txt)" >> $GITHUB_STEP_SUMMARY
shell: bash

0 comments on commit 5f50b5f

Please sign in to comment.