Skip to content

Commit

Permalink
Merge pull request Wandalen#170 from dmvict/pre_retry_action
Browse files Browse the repository at this point in the history
READY: Add option `pre_retry_command`
  • Loading branch information
dmvict authored Oct 29, 2024
2 parents 2318e46 + fa68501 commit b39318b
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ The command to run. The action runs the command in the default shell.

**Attention**. Action requires defined `action` or `command`. If the fields `action` and `commands` are defined simultaneously, then action will throw error.

### `pre_retry_command`

Command to run between retries.

### `with`

An options map for Github action. It is a multiline string with pairs `key : value`.
Expand Down
3 changes: 3 additions & 0 deletions action-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ inputs:
command:
type: string

pre_retry_command:
type: string

with:
type: string

Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ inputs:
command:
description: 'Command to run. Should be defined action or command, not both.'
required: false
pre_retry_command:
description: 'Command to run between retries.'
required: false
with:
description: An options map for Github action
required: false
Expand Down
3 changes: 3 additions & 0 deletions main/action-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ inputs:
command:
type: string

pre_retry_command:
type: string

with:
type: string

Expand Down
3 changes: 3 additions & 0 deletions main/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ inputs:
command:
description: 'Command to run. Should be defined action or command, not both.'
required: false
pre_retry_command:
description: 'Command to run between retries.'
required: false
with:
description: An options map for Github action
required: false
Expand Down
3 changes: 3 additions & 0 deletions post/action-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ inputs:
command:
type: string

pre_retry_command:
type: string

with:
type: string

Expand Down
3 changes: 3 additions & 0 deletions post/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ inputs:
command:
description: 'Command to run. Should be defined action or command, not both.'
required: false
pre_retry_command:
description: 'Command to run between retries.'
required: false
with:
description: An options map for Github action
required: false
Expand Down
3 changes: 3 additions & 0 deletions pre/action-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ inputs:
command:
type: string

pre_retry_command:
type: string

with:
type: string

Expand Down
3 changes: 3 additions & 0 deletions pre/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ inputs:
command:
description: 'Command to run. Should be defined action or command, not both.'
required: false
pre_retry_command:
description: 'Command to run between retries.'
required: false
with:
description: An options map for Github action
required: false
Expand Down

0 comments on commit b39318b

Please sign in to comment.