dnd-it/action-lock

GitHub Action for distributed mutex locking using git refs. Acquire and release locks to serialize workflow jobs.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Feb 20, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: dnd-it/action-lock@33c5cfe59a96e64f99e083e46bd1ee4ce416d468 # v0.1.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
actionLock action: acquire or releaseyes
lock_nameName of the lock (used as the ref name under refs/locks/)yes
timeoutMaximum time in seconds to wait for lock acquisitionno300
poll_intervalSeconds between lock acquisition attemptsno10
stale_thresholdSeconds after which a lock is considered stale and can be force-acquired. Set to 0 to disable.no600
fail_on_timeoutFail the step if the lock cannot be acquired within timeout. Set to false to skip gracefully.notrue
tokenGitHub token with contents:write permissionyes
namedescription
acquiredWhether the lock was successfully acquired (true/false)
lock_refThe full git ref used for the lock