generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #202 from github/sticky_locks_for_noop
Sticky Locks for `noop` deployments
- Loading branch information
Showing
8 changed files
with
118 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,13 +12,29 @@ This behavior is not enabled out of the box and you need to enable it in your Ac | |
|
||
You can still release locks manually with `.unlock` at any time and so can other users. This is helpful if you need to release a lock that is blocking a deployment from another PR or if you were just testing changes and want to release the lock. | ||
|
||
## Example | ||
It should be noted that if you want this logic to **also apply to noop deployments** you need to enable another input option called `sticky_locks_for_noop` and also set its value to `"true"`. By default, noop deployments will not claim sticky locks as this often just leads to locks being left behind and never cleaned up. | ||
|
||
## Examples | ||
|
||
Enabling sticky deployment locks for `.deploy` commands: | ||
|
||
```yaml | ||
- name: branch-deploy | ||
id: branch-deploy | ||
uses: github/[email protected] | ||
with: | ||
sticky_locks: "true" # <--- enables sticky deployment lock / hubot style deployment locks | ||
# ... other configuration | ||
``` | ||
|
||
Enabling sticky deployment locks for `.deploy` and `.noop` commands: | ||
|
||
```yaml | ||
- name: branch-deploy | ||
id: branch-deploy | ||
uses: github/[email protected] | ||
with: | ||
sticky_locks: "true" # <--- enables sticky deployment lock / hubot style deployment locks | ||
sticky_locks_for_noop: "true" # <--- enables sticky deployment lock / hubot style deployment locks for noop deployments | ||
# ... other configuration | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters