Skip to content

Commit 53689a7

Browse files
committed
.noop docs updates
1 parent 7ef025c commit 53689a7

File tree

5 files changed

+20
-17
lines changed

5 files changed

+20
-17
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ You can test your changes by doing the following steps:
4040

4141
1. Commit your changes to the `main` branch on your fork
4242
2. Open a new pull request
43-
3. Run IssueOps commands on the pull request you just opened (`.deploy`, `.deploy noop`, `.deploy main`)
43+
3. Run IssueOps commands on the pull request you just opened (`.deploy`, `.noop`, `.deploy main`, etc)
4444
4. Ensure that all IssueOps commands work as expected on your testing PR
4545

4646
### Testing FAQs 🤔

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This Action does the heavy lifting for you to enable branch deployments:
1818
## Available Commands 💬
1919

2020
- `.deploy` - Deploy a pull request
21-
- `.deploy noop` - Deploy a pull request in noop mode
21+
- `.noop` - Deploy a pull request in noop mode
2222
- `.deploy to <environment>` - Deploy a pull request to a specific environment
2323
- `.deploy <stable_branch>` - Trigger a rollback deploy to your stable branch (main, master, etc)
2424
- `.lock` - Create a deployment lock for the default environment
@@ -247,7 +247,7 @@ As seen above, we have two steps. One for a noop deploy, and one for a regular d
247247
- `steps.branch-deploy.outputs.continue == 'true'` - The `continue` variable is only set to true when a deployment should continue
248248
- `steps.branch-deploy.outputs.noop == 'true'` - The `noop` variable is only set to true when a noop deployment should be run
249249

250-
> Example: You comment `.deploy noop` on a pull request. A noop deployment is detected so this action outputs the `noop` variable to `true`. You also have the correct permissions to execute the IssueOps command so the action also outputs the `continue` variable to `true`. This will allow the "fake noop deploy" step seen above to run and the "fake regular deploy" step will be skipped
250+
> Example: You comment `.noop` on a pull request. A noop deployment is detected so this action outputs the `noop` variable to `true`. You also have the correct permissions to execute the IssueOps command so the action also outputs the `continue` variable to `true`. This will allow the "fake noop deploy" step seen above to run and the "fake regular deploy" step will be skipped
251251

252252
## Inputs 📥
253253

@@ -382,9 +382,9 @@ To use a deployment with a specific environment, you would invoke your commands
382382

383383
This also works with noop commands as well
384384

385-
- `.deploy noop production`
386-
- `.deploy noop to production`
387-
- `.deploy noop to <environment>`
385+
- `.noop production`
386+
- `.noop to production`
387+
- `.noop to <environment>`
388388

389389
YAML input example:
390390

@@ -571,7 +571,7 @@ This section will cover a few suggestions that will help you when using this Act
571571

572572
Here are a few alternate ways you can invoke commands:
573573

574-
- `.deploy noop staging` - Invoke a "noop" deployment to the staging environment
574+
- `.noop staging` - Invoke a "noop" deployment to the staging environment
575575
- `.deploy development` - Invoke a deployment to the development environment (notice how you can omit the "to" keyword)
576576
- `.deploy to development` - Invoke a deployment to the development environment (with the "to" keyword)
577577
- `.deploy` - Uses the default environment (usually "production")

docs/examples.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Quick links below to jump to a specific branch-deploy example:
2525

2626
This is the simplest possible example of how you could use the branch-deploy Action for reference
2727

28-
- `.deploy noop` has no effect here (but you could change that)
28+
- `.noop` has no effect here (but you could change that)
2929
- `.deploy` will deploy the current branch (you can configure deployments however you like, this is just an example)
3030

3131
```yaml
@@ -70,7 +70,7 @@ jobs:
7070
7171
This example shows how you could use this Action with [Terraform](https://www.terraform.io/)
7272
73-
- `.deploy noop` triggers a Terraform plan
73+
- `.noop` triggers a Terraform plan
7474
- `.deploy` triggers a Terraform apply
7575

7676
All deployment results get posted as a comment in the branch deploy output on your pull request
@@ -131,7 +131,7 @@ jobs:
131131
if: steps.branch-deploy.outputs.continue == 'true'
132132
run: terraform init
133133
134-
# If '.deploy noop' was used, run a Terraform plan
134+
# If '.noop' was used, run a Terraform plan
135135
- name: Terraform plan
136136
if: ${{ steps.branch-deploy.outputs.continue == 'true' && steps.branch-deploy.outputs.noop == 'true' }}
137137
id: plan
@@ -178,7 +178,7 @@ jobs:
178178

179179
This example shows how you could use this Action with [Heroku](https://heroku.com)
180180

181-
- `.deploy noop` has no effect here (but you could change that)
181+
- `.noop` has no effect here (but you could change that)
182182
- `.deploy` takes your current branch and deploys it to Heroku
183183

184184
> A live example can be found [here](https://github.com/the-hideout/stash/blob/3d8cd979d124bd13878c4bc92f74f3830cf53c22/.github/workflows/branch-deploy.yml)
@@ -231,7 +231,7 @@ jobs:
231231

232232
This example shows how you could use this Action with [Railway](https://railway.app)
233233

234-
- `.deploy noop` has no effect here (but you could change that)
234+
- `.noop` has no effect here (but you could change that)
235235
- `.deploy` takes your current branch and deploys it to Railway
236236

237237
> A live example can be found [here](https://github.com/the-hideout/stash/blob/57d85e2092866b675a73ff23203c04962df12385/.github/workflows/branch-deploy.yml)
@@ -288,7 +288,7 @@ This example shows how you could use this Action with SSH
288288

289289
You can define any commands you want to be run in your SSH Action and they would be gated by the branch-deploy Action.
290290

291-
- `.deploy noop` has no effect here (but you could change that)
291+
- `.noop` has no effect here (but you could change that)
292292
- `.deploy` runs the SSH action with your branch
293293

294294
> A live example can be found [here](https://github.com/the-hideout/cache/blob/c7dc4fa550f137efebf0ee656413985afba66770/.github/workflows/branch-deploy.yml)

docs/locks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Deployment locks in relation to environments also come in two flavors:
3535
Let's review the core concepts of deployment locks in a short summary:
3636

3737
- Deployment locks are used to prevent multiple deployments from running at the same time and breaking things
38-
- Non-sticky locks are created automatically when running `.deploy` or `.deploy noop`
38+
- Non-sticky locks are created automatically when running `.deploy` or `.noop`
3939
- Sticky locks are created manually by commenting `.lock` on a pull request - They will persist until you remove them with `.unlock`
4040
- Locks are associated to a user's GitHub handle - This user can deploy any pull request in the repository and as many times as they want
4141
- Any user can remove a lock by commenting `.unlock` on any pull request in the repository

docs/usage.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ To view your available commands, environment targets, and how your workflow is s
1515
Deployments respect your repository's branch protection settings. You can trigger either a regular or noop deployment:
1616

1717
- `.deploy` - Triggers a regular deployment using the default environment (think "Terraform apply" for example)
18-
- `.deploy noop` - Triggers a noop deployment (think "Terraform plan" for example)
18+
- `.noop` - Triggers a noop deployment (think "Terraform plan" for example)
1919
- `.deploy <environment>` - Triggers a deployment for the specified environment
20-
- `.deploy noop <environment>` - Triggers a noop deployment for the specified environment
20+
- `.noop <environment>` - Triggers a noop deployment for the specified environment
2121
- `.deploy <stable_branch>` - Trigger a rollback deploy to your stable branch (main, master, etc)
22+
- `.noop <stable_branch>` - Trigger a rollback noop to your stable branch (main, master, etc)
2223

2324
## Deployment Locks 🔒
2425

@@ -47,6 +48,8 @@ If something goes wrong and you need to redeploy the main/master/base branch of
4748

4849
- `.deploy main` - Rolls back to the `main` branch in production
4950
- `.deploy main to <environment>` - Rolls back to the `main` branch in the specified environment
51+
- `.noop main` - Rolls back to the `main` branch in production as a noop deploy
52+
- `.noop main to <environment>` - Rolls back to the `main` branch in the specified environment as a noop deploy
5053

5154
> Note: The `stable_branch` option can be configured in your branch-deploy workflow definition. By default it is the `main` branch but it can be changed to `master` or any other branch name.
5255
@@ -79,7 +82,7 @@ An example workflow for using this Action might look like this:
7982
4. Once CI is passing and the user has the proper reviews on their pull request, they can continue
8083
5. The user grabs the deployment lock as they need an hour or two for validating their change -> `.lock`
8184
6. The lock is claimed and now only the user who claimed it can deploy
82-
7. The user runs `.deploy noop` to get a preview of their changes
85+
7. The user runs `.noop` to get a preview of their changes
8386
8. All looks good so the user runs `.deploy` and ships their code to production from their branch
8487

8588
> If anything goes wrong, the user can run `.deploy main` to rollback to the `main` branch

0 commit comments

Comments
 (0)