default the operation output to none

This commit is contained in:
Peter Evans 2024-08-15 13:37:41 +00:00
parent eea4f44785
commit fd3e742ffd
3 changed files with 3 additions and 1 deletions

View file

@ -116,7 +116,7 @@ The following outputs can be used by subsequent workflow steps.
- `pull-request-number` - The pull request number. - `pull-request-number` - The pull request number.
- `pull-request-url` - The URL of the pull request. - `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-head-sha` - The commit SHA of the pull request branch.
- `pull-request-branch` - The branch name of the pull request. - `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`. - `pull-request-commits-verified` - Whether GitHub considers the signature of the branch's commits to be verified; `true` or `false`.

1
dist/index.js vendored
View file

@ -453,6 +453,7 @@ function createPullRequest(inputs) {
// Action outputs // Action outputs
const outputs = new Map(); const outputs = new Map();
outputs.set('pull-request-branch', inputs.branch); outputs.set('pull-request-branch', inputs.branch);
outputs.set('pull-request-operation', 'none');
outputs.set('pull-request-commits-verified', 'false'); outputs.set('pull-request-commits-verified', 'false');
// Create or update the pull request branch // Create or update the pull request branch
core.startGroup('Create or update the pull request branch'); core.startGroup('Create or update the pull request branch');

View file

@ -178,6 +178,7 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
// Action outputs // Action outputs
const outputs = new Map<string, string>() const outputs = new Map<string, string>()
outputs.set('pull-request-branch', inputs.branch) outputs.set('pull-request-branch', inputs.branch)
outputs.set('pull-request-operation', 'none')
outputs.set('pull-request-commits-verified', 'false') outputs.set('pull-request-commits-verified', 'false')
// Create or update the pull request branch // Create or update the pull request branch