- Add polling-interval-seconds input parameter to action.yaml (default: 10) - Update polling logic to use configurable interval - Add input validation to ensure positive values - Update README with usage documentation This allows users to customize how frequently the action polls GitHub API for approval status, enabling them to reduce API calls or speed up response times based on their needs.
60 lines
2 KiB
YAML
60 lines
2 KiB
YAML
name: Manual Workflow Approval
|
|
description: Pause a workflow and get user approval to continue
|
|
branding:
|
|
icon: pause
|
|
color: yellow
|
|
inputs:
|
|
approvers:
|
|
description: Required approvers
|
|
required: true
|
|
secret:
|
|
description: Secret
|
|
required: true
|
|
minimum-approvals:
|
|
description: Minimum number of approvals to progress workflow
|
|
required: false
|
|
issue-title:
|
|
description: The custom subtitle for the issue
|
|
required: false
|
|
issue-body:
|
|
description: The custom body for the issue
|
|
required: false
|
|
issue-body-file-path:
|
|
description: The file path to a custom body for the issue
|
|
required: false
|
|
exclude-workflow-initiator-as-approver:
|
|
description: Whether or not to filter out the user who initiated the workflow as an approver if they are in the approvers list
|
|
required: false
|
|
default: 'false'
|
|
additional-approved-words:
|
|
description: Comma separated list of words that can be used to approve beyond the defaults.
|
|
required: false
|
|
default: ''
|
|
additional-denied-words:
|
|
description: Comma separated list of words that can be used to deny beyond the defaults.
|
|
required: false
|
|
default: ''
|
|
target-repository-owner:
|
|
description: Owner of the repository in which the issue will be created.
|
|
default: ''
|
|
target-repository:
|
|
description: Name of the repository in which the issue will be created.
|
|
default: ''
|
|
fail-on-denial:
|
|
description: Whether or not to fail the workflow if the approval is denied
|
|
required: false
|
|
default: 'true'
|
|
polling-interval-seconds:
|
|
description: Number of seconds to wait between polling GitHub API for approval status
|
|
required: false
|
|
default: '10'
|
|
outputs:
|
|
issue-number:
|
|
description: The number of the issue created
|
|
issue-url:
|
|
description: The URL of the issue created
|
|
approval-status:
|
|
description: The status of the approval ("approved" or "denied")
|
|
runs:
|
|
using: docker
|
|
image: docker://ghcr.io/trstringer/manual-approval:1.11.0
|