Try to support diff url from pull request

This commit is contained in:
Nick DeRobertis
2021-10-24 10:52:41 -04:00
parent 6cef547381
commit 9867ed27cd
2 changed files with 14 additions and 5 deletions

View File

@@ -20,6 +20,10 @@ inputs:
description: "An array of commit objects describing the pushed commits"
required: true
default: "${{ toJSON(github.event.commits) }}"
DIFF_URL:
description: "The URL to use to get the diff (automatically set)"
required: true
default: "${{ github.event.pull_request?.diff_url }}"
SHA:
description: "The SHA of the latest commit (automatically set)"
required: true