diff --git a/README.md b/README.md index 8fc1205..b711fdd 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ The following outputs can be used by subsequent workflow steps. - `pull-request-number` - The pull request number. - `pull-request-url` - The URL of the pull request. -- `pull-request-operation` - The pull request operation performed by the action, `created`, `updated` or `closed`. +- `pull-request-operation` - The pull request operation performed by the action, `created`, `updated`, `closed` or `none`. - `pull-request-head-sha` - The commit SHA of the pull request branch. - `pull-request-branch` - The branch name of the pull request. - `pull-request-commits-verified` - Whether GitHub considers the signature of the branch's commits to be verified; `true` or `false`. diff --git a/dist/index.js b/dist/index.js index 7daffaa..7065322 100644 --- a/dist/index.js +++ b/dist/index.js @@ -453,6 +453,7 @@ function createPullRequest(inputs) { // Action outputs const outputs = new Map(); outputs.set('pull-request-branch', inputs.branch); + outputs.set('pull-request-operation', 'none'); outputs.set('pull-request-commits-verified', 'false'); // Create or update the pull request branch core.startGroup('Create or update the pull request branch'); diff --git a/src/create-pull-request.ts b/src/create-pull-request.ts index f6bae8b..d45939f 100644 --- a/src/create-pull-request.ts +++ b/src/create-pull-request.ts @@ -178,6 +178,7 @@ export async function createPullRequest(inputs: Inputs): Promise { // Action outputs const outputs = new Map() outputs.set('pull-request-branch', inputs.branch) + outputs.set('pull-request-operation', 'none') outputs.set('pull-request-commits-verified', 'false') // Create or update the pull request branch