Skip to content

Commit

Permalink
feat(set-commit-status): add skip_if_already_set param (#322)
Browse files Browse the repository at this point in the history
* feat(set-commit-status): add skip_if_already_set param

* rebuild

* chore: committing generated dist

* Update src/helpers/set-commit-status.ts

Co-authored-by: Dan Adajian <[email protected]>

* spliced in pr somehow

* chore: committing generated dist

Co-authored-by: aschwenn <[email protected]>
Co-authored-by: Dan Adajian <[email protected]>
  • Loading branch information
3 people authored Jan 25, 2023
1 parent 598b9bc commit 5f4c080
Show file tree
Hide file tree
Showing 32 changed files with 194 additions and 61 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ Additionally, the following parameters can be used for additional control over t

### [set-commit-status](.github/workflows/set-commit-status.yml)
* Sets a [commit status](https://github.blog/2012-09-04-commit-status-api/)
* You can pass in `skip_if_already_set: true` if you'd like to skip setting a status if it's already been set on the commit by a workflow

### [set-deployment-status](.github/workflows/deployments.yml#L31)
* Updates a Github [deployment status](https://docs.github.com/en/rest/reference/repos#deployments)
Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ inputs:
no_evict_upon_conflict:
description: 'Skip the default behavior of evicting a PR from the merge queue when there is a merge conflict'
required: false
skip_if_already_set:
description: 'Skip setting a commit status if it has already been set to success or failure by a workflow'
required: false
outputs:
output:
description: 'The output of the helper'
Expand Down
2 changes: 1 addition & 1 deletion dist/0.index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5f4c080

Please sign in to comment.