Skip to content

Commit 0397f3b

Browse files
committed
update inputs
1 parent 0d68141 commit 0397f3b

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ As seen above, we have two steps. One for a noop deploy, and one for a regular d
284284
| `sticky_locks` | `false` | `"false"` | If set to `"true"`, locks will not be released after a deployment run completes. This applies to both successful, and failed deployments.Sticky locks are also known as ["hubot style deployment locks"](./docs/hubot-style-deployment-locks.md). They will persist until they are manually released by a user, or if you configure [another workflow with the "unlock on merge" mode](./docs/unlock-on-merge.md) to remove them automatically on PR merge. |
285285
| `sticky_locks_for_noop` | `false` | `"false"` | If set to `"true"`, then sticky_locks will also be used for noop deployments. This can be useful in some cases but it often leads to locks being left behind when users test noop deployments. |
286286
| `allow_sha_deployments` | `false` | `"false"` | If set to `"true"`, then you can deploy a specific sha instead of a branch. Example: `".deploy 1234567890abcdef1234567890abcdef12345678 to production"` - This is dangerous and potentially unsafe, [view the docs](docs/sha-deployments.md) to learn more |
287+
| `disable_naked_commands` | `false` | `"false"` | If set to `"true"`, then naked commands will be disabled. Example: `.deploy` will not trigger a deployment. Instead, you must use `.deploy to production` to trigger a deployment. This is useful if you want to prevent accidental deployments from happening. View the [docs](docs/naked-commands.md) to learn more |
287288

288289
## Outputs 📤
289290

__tests__/schemas/action.schema.yml

+10
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,16 @@ inputs:
360360
default:
361361
required: true
362362
type: string
363+
disable_naked_commands:
364+
description:
365+
type: string
366+
required: true
367+
required:
368+
type: boolean
369+
required: true
370+
default:
371+
required: true
372+
type: string
363373

364374
# outputs section
365375
outputs:

action.yml

+4
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ inputs:
137137
description: 'If set to "true", then you can deploy a specific sha instead of a branch. Example: ".deploy 1234567890abcdef1234567890abcdef12345678 to production" - This is dangerous and potentially unsafe, view the docs to learn more: https://github.com/github/branch-deploy/blob/main/docs/sha-deployments.md'
138138
required: false
139139
default: "false"
140+
disable_naked_commands:
141+
description: 'If set to "true", then naked commands will be disabled. Example: ".deploy" will not trigger a deployment. Instead, you must use ".deploy to production" to trigger a deployment. This is useful if you want to prevent accidental deployments from happening. Read more about naked commands here: https://github.com/github/branch-deploy/blob/main/docs/naked-commands.md'
142+
required: false
143+
default: "false"
140144
outputs:
141145
continue:
142146
description: 'The string "true" if the deployment should continue, otherwise empty - Use this to conditionally control if your deployment should proceed or not'

0 commit comments

Comments
 (0)