{"repo":"github/lock","free":true,"listed":false,"github":"https://github.com/github/lock","clone":"git clone https://github.com/github/lock.git","description":"Lock Action to support deployment locking for the branch-deploy Action","language":"JavaScript","stars":58,"topics":["actions","ci","deployments","lock","github-actions"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"lock 🔒 A standalone deployment locking Action to prevent multiple deployments from running at the same time If you came here from the github/branch-deploy Action, you are in the right place! About 💡 Certain users for the github/branch-deploy Action need more control over how, when, and why deployment locks are set. This Action allows you to have full control over when and how locks are set and removed. Potential Use Cases 🗒️ - Manually set a deployment lock via a workflow dispatch event - Conditionally set a deployment lock if your test suite is failing badly - Set a deployment lock over all your repositories during an a scheduled deploy lock window - Set a deployment lock via a comment on a pull request (supported out-of-the-box) Usage 🚀 This section goes into detail on how you can use this Action in your own workflows! Inputs 📥 Input Required? Default Description ----- --------- ------- ----------- github token true ${{ github.token }} The GitHub token used to create an authenticated client - Provided for you by default! environment true \"production\" The explict environment to apply locking actions to when running in headless mode - OR the default environment to use when running in the context of IssueOps commands in a comment - Examples: production, development, etc - Use \"global\" for the global lock environment environment targets false \"production,development,staging\" Optional (or additional) target environments to select for use with lock/unlock. Example, \"producti","default_branch":null,"files":null,"tree":[],"storefront":"/r/github","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/github/lock/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}