daxartio/Lock Action

Manage GitHub branch based lock mechanism

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
modeOne of the following values: - lock: Lock the key - unlock: Unlock the key - check: Check if the key is being locked yes
keyA lock key. This is useful to manage locks by service and environment. yes
key_prefixA lock key prefix. This action creates and updates the branch `${keyPrefix}${key}` for each key. nolock-
github_tokenGitHub Access Token. This is used to create branches and commits. The permission `contents:write` is required. no${{ github.token }}
repo_ownerThe repository owner where this action creates branches. The default value is `$GITHUB_REPOSITORY_OWNER`. no
repo_nameThe repository name where this action creates branches. The default value is the repository name of `$GITHUB_REPOSITORY`. no
messageThis is used to record the reason and context of lock and unlock operation. no
ignore_already_locked_errorIf this is `true`, the action does not fail when it can't acquire the lock as the key is already being locked. nofalse
unlock_wait_enabledIndicates whether the action should wait for the lock to be released if it is already held. Set to "true" to enable waiting, or "false" to immediately fail if the lock is taken. Default is "true".true
unlock_wait_timeoutSpecifies the maximum time, in seconds, that the action should wait for the lock to be released. This is only used if unlock_wait_enabled is set to "true". Default is "10" seconds.10
unlock_wait_intervalDefines the interval, in seconds, between each check to see if the lock has been released. This setting is only relevant if unlock_wait_enabled is set to "true". Default is "1" second.1
namedescription
already_lockedWhether the key is already locked
resultThe lock result