feat: support for fail-if-no-changes input

Currently if this action is used and no changes have been made to the
repository, the job will silently continue. This feature adds a new
flag `fail-if-no-changes`, which when enabled causes the job to fail
when there are no changes.
This commit is contained in:
Chris Buckley 2022-01-08 21:48:54 +00:00
parent dcd5fd746d
commit 171a10a802
7 changed files with 21 additions and 5 deletions

View file

@ -71,6 +71,9 @@ inputs:
draft:
description: 'Create a draft pull request'
default: false
fail-if-no-changes:
description: 'Whether the job should fail if no changes are made.'
default: false
outputs:
pull-request-number:
description: 'The pull request number'