geniusventures/CI Runner Lock

Cross-platform mutual exclusion for CI runners shared between Forgejo Actions and GitHub Actions. Ensures only one CI job runs at a time on the same machine. Uses atomic `set -C` (O_EXCL / noclobber) file creation — works identically on Linux, macOS, and Windows. The lock auto-expires after CI_LOCK_MAX_AGE seconds (default 2h) and is released if the owning process dies, so a crashed build will never deadlock the machine.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
commandacquire | release | status | waityes
timeoutMax seconds to wait for acquire (0 = wait forever)0
max-ageMax lock age in seconds before it is considered stale7200
namedescription
acquiredtrue if the lock was acquired, false otherwise