Skip to content

Commit 252fd36

Browse files
committed
refactor: Use --task syntax instead of deployment_task action input parameter
- Change description of `deployment_task` in `action.yml` - Modify parsing of task parameter in `src/functions/environment-targets.js` - Update handling of `deployment_task` in `src/functions/inputs.js` - Introduce task validation logic in `src/main.js`
1 parent e0abaad commit 252fd36

File tree

6 files changed

+210
-48
lines changed

6 files changed

+210
-48
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ inputs:
206206
required: false
207207
default: "60"
208208
deployment_task:
209-
description: 'Task identifier for the deployment (enables concurrent deployments to same environment). When specified, multiple deployments can be active simultaneously for the same environment as long as they have different task values. Example: "frontend", "backend", "api"'
209+
description: 'Controls task-based concurrent deployments to the same environment. Set to "all" to allow any task via --task flag in comments, or provide a comma-separated list of allowed tasks (e.g., "frontend,backend,api"). Tasks are specified in PR comments using --task <name>. Leave empty to disable task support.'
210210
required: false
211211
default: ""
212212
outputs:

dist/index.js

Lines changed: 104 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)