Skip to content

Commit 15e2f64

Browse files
committed
Define parameter and update readme
1 parent 9e47aba commit 15e2f64

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ Registers an Amazon ECS task definition and deploys it to an ECS service.
2020

2121
## Usage
2222

23+
The action supports the following inputs:
24+
25+
* `task-definition` (required) - The path to the ECS task definition file (JSON format) to register.
26+
* `max-retries` (optional) - The maximum number of retry attempts for AWS API calls. The action uses exponential backoff with jitter for retries. Defaults to 3.
27+
* `service` (optional) - The name of the ECS service to update with the new task definition. If empty, the action will not attempt to update a service.
28+
2329
```yaml
2430
- name: Deploy to Amazon ECS
2531
uses: aws-actions/amazon-ecs-deploy-task-definition@v2

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ inputs:
8888
propagate-tags:
8989
description: "Determines to propagate the tags from the 'SERVICE' to the task."
9090
required: false
91+
max-retries:
92+
description: 'The maximum number of retry attempts for AWS API calls. Defaults to 3.'
93+
required: false
9194
outputs:
9295
task-definition-arn:
9396
description: 'The ARN of the registered ECS task definition.'

0 commit comments

Comments
 (0)