-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
66 lines (62 loc) · 2.7 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: "Gruntwork Patcher"
description: "Setup and run Patcher to update Terraform and Terragrunt dependencies."
author: "Gruntwork"
branding:
icon: chevron-right
color: purple
inputs:
github_token:
description: "GitHub's Personal Access Token (PAT). Used to authenticate usage of Patcher as an action."
default: ${{ github.token }}
read_token:
description: "Personal Access Token (PAT) used for 'report' and 'update' to ingest dependencies and their updated versions. If left unset, github_token will be used."
update_token:
description: "Personal Access Token (PAT) used for 'update' to publish PRs against the relevant repo. If left unset, github_token will be used."
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: >
"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-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: "node20"
main: "dist/index.js"