-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from gruntwork-io/v2
Promotion Workflows V2
- Loading branch information
Showing
21 changed files
with
545 additions
and
11,125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
|
||
### Intellij ### | ||
.idea/ | ||
.vscode | ||
|
||
### Node ### | ||
# Logs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"printWidth": 120, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"semi": true, | ||
"singleQuote": false, | ||
"trailingComma": "es5", | ||
"bracketSpacing": true, | ||
"arrowParens": "always", | ||
"endOfLine": "lf" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,17 +22,25 @@ steps: | |
### Action inputs | ||
| Name | Description | Default | | ||
|-------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------| | ||
| `github_token` | GitHub's Personal Access Token (PAT). | `GITHUB_TOKEN` | | ||
| `patcher_command` | Patcher command to run. Valid options: `update` or `report`. | `update` | | ||
| `working_dir` | Directory where Patcher should run. If empty, it will run in the whole repo. | | | ||
| `update_strategy` | Update strategy. Only used when running `update`. Valid options: `next-safe` or `next-breaking`. Refer to the ["Update Strategies" documentation](https://docs.gruntwork.io/patcher/update-strategies). | `next-breaking` | | ||
| `dependency` | Target the update to a single dependency. Only used when running `update`. Format: `<org>/<repo>/<name>`. Example: `gruntwork-io/terraform-aws-service-catalog/services/ecs-module`. | | | ||
| `commit_author` | Author of the Pull Request's commits in the format `Name <[email protected]>`. Only used when running `update`. The permissions to push the changes and to create the Pull Request are from 'github_token'. | `gruntwork-patcher-bot <[email protected]>` | | ||
| Name | Description | Default | | ||
|-------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------| | ||
| `github_token` | GitHub's Personal Access Token (PAT). | `GITHUB_TOKEN` | | ||
| `patcher_command` | Patcher command to run. Valid options: `update` or `report`. | `update` | | ||
| `working_dir` | Directory where Patcher should run. If empty, it will run in the whole repo. | | | ||
| `update_strategy` | Update strategy. Only used when running `update`. Valid options: `next-safe` or `next-breaking`. Refer to the ["Update Strategies" documentation](https://docs.gruntwork.io/patcher/update-strategies). | `next-breaking` | | ||
| `include_dirs` | List of directories to include using a double-star glob pattern. Only used when running `report`. | | | ||
| `exclude_dirs` | List of directories to exclude using a double-star glob pattern. Only used when running `report`. | | | ||
| `spec_file` | Default name of the upgrade specification file. This is used by Patcher to restrict an upgrade to certain dependencies. | `spec.json` | | ||
| `dependency` | Limit the update to a single dependency. Only used when running `update`. Format: `<org>/<repo>/<name>`. Example: `gruntwork-io/terraform-aws-service-catalog/services/ecs-module`. | | | ||
| `commit_author` | Author of the Pull Request's commits in the format `Name <[email protected]>`. Only used when running `update`. The permissions to push the changes and to create the Pull Request are from 'github_token'. | `gruntwork-patcher-bot <[email protected]>` | | ||
| `pull_request_branch` | Branch to use when creating the Pull Request. Required when running `update`. | | | ||
| `pull_request_title` | Title of the Pull Request. Only used when running `update`. | `[Patcher] Update dependencies` | | ||
| `dry_run` | Simulate all operations using Patcher's dry-run mode. Useful for test workflows. Only used when running `update`. | `false` | | ||
| `no_color` | Whether to disable color output. | `false` | | ||
|
||
### Action outputs | ||
- `dependencies`: Terraform and Terragrunt dependencies from the given directory. Only works for `report`. | ||
- `spec`: All discovered dependencies from the given directory using any filters. Only works for `report`. | ||
- `updateResult`: The result of the upgrade. Only works for `update`. | ||
|
||
### Promotion Workflows | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,26 +13,50 @@ inputs: | |
patcher_command: | ||
description: "Patcher command to run. Valid options: 'update' or 'report'." | ||
default: "update" | ||
include_dirs: | ||
description: > | ||
"Include only directories matching the given double-star glob pattern. Only works for `report`." | ||
"Example: `{*dev*}/**`" | ||
default: "" | ||
exclude_dirs: | ||
description: > | ||
"Exclude any directories matching the given double-star glob pattern. Only works for `report`." | ||
"Example: `"{*alb*}/**"`" | ||
default: "" | ||
update_strategy: | ||
description: "Update strategy. Only used when running 'update'. Defaults to 'next-breaking'." | ||
default: "next-breaking" | ||
spec_file: | ||
description: "Default name of the upgrade specification." | ||
default: "spec.json" | ||
dependency: | ||
description: > | ||
"Target the update to a single dependency. Format: <org>/<repo>/<name>." | ||
"Limit the update to a single dependency. Format: <org>/<repo>/<name>." | ||
"Example: gruntwork-io/terraform-aws-service-catalog/services/ecs-module." | ||
working_dir: | ||
description: "Directory where Patcher should run. If empty, it will run in the whole repo." | ||
commit_author: | ||
description: > | ||
"Author of the Pull Request's commits in the format 'Name <[email protected]>'. The permissions to push the changes | ||
"and to create the Pull Request are from 'github_token'. Defaults to gruntwork-patcher." | ||
default: 'gruntwork-patcher-bot <[email protected]>' | ||
"and to create the Pull Request are from 'github_token'. Defaults to gruntwork-patcher-bot." | ||
default: "gruntwork-patcher-bot <[email protected]>" | ||
pull_request_branch: | ||
description: "Branch where the Pull Request should be created. Required when 'update' is used." | ||
default: "" | ||
pull_request_title: | ||
description: "Title of the Pull Request. Defaults to '[Patcher] Update dependencies'." | ||
default: "[Patcher] Update dependencies" | ||
dry_run: | ||
description: "Simulate all operations using dry-run mode. Useful for test workflows. Defaults to false." | ||
default: "false" | ||
no_color: | ||
description: "Disable color output. Defaults to false." | ||
default: "false" | ||
|
||
outputs: | ||
dependencies: | ||
description: "Terraform and Terragrunt dependencies from the given directory. Only works for 'report'." | ||
|
||
runs: | ||
using: 'node16' | ||
main: 'dist/index.js' | ||
|
||
using: "node20" | ||
main: "dist/index.js" |
Oops, something went wrong.