The action will fail if someone tries to use it with a SHA instead of a tag, e.g., uses: rossjrw/pr-preview-action@9dac5c4777c535516ebf819f93aeadac70f66488 because the script cannot determine the tag from this SHA.
This changes the action to just use the SHA if the tag cannot be determined. Another approach would be to eliminate this script entirely, as it is only used for display of the version in the generated PR comment.
The action will fail if someone tries to use it with a SHA instead of a tag, e.g.,
uses: rossjrw/pr-preview-action@9dac5c4777c535516ebf819f93aeadac70f66488
because the script cannot determine the tag from this SHA.This changes the action to just use the SHA if the tag cannot be determined. Another approach would be to eliminate this script entirely, as it is only used for display of the version in the generated PR comment.