From 8b50f3152eaa03e072dd5d751876e245107ada1c Mon Sep 17 00:00:00 2001 From: dmvict Date: Tue, 29 Oct 2024 08:52:31 +0200 Subject: [PATCH] Update action, add option `pre_retry_command` to run command between retries --- Readme.md | 4 ++++ action-types.yml | 3 +++ action.yml | 3 +++ main/action-types.yml | 3 +++ main/action.yml | 3 +++ post/action-types.yml | 3 +++ post/action.yml | 3 +++ pre/action-types.yml | 3 +++ pre/action.yml | 3 +++ 9 files changed, 28 insertions(+) diff --git a/Readme.md b/Readme.md index 7ed407d..9a16006 100644 --- a/Readme.md +++ b/Readme.md @@ -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`. diff --git a/action-types.yml b/action-types.yml index 4140a30..a62ac6a 100644 --- a/action-types.yml +++ b/action-types.yml @@ -6,6 +6,9 @@ inputs: command: type: string + pre_retry_command: + type: string + with: type: string diff --git a/action.yml b/action.yml index ab79cc8..b47ea22 100644 --- a/action.yml +++ b/action.yml @@ -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 diff --git a/main/action-types.yml b/main/action-types.yml index 4140a30..a62ac6a 100644 --- a/main/action-types.yml +++ b/main/action-types.yml @@ -6,6 +6,9 @@ inputs: command: type: string + pre_retry_command: + type: string + with: type: string diff --git a/main/action.yml b/main/action.yml index 19481b5..0606c6b 100644 --- a/main/action.yml +++ b/main/action.yml @@ -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 diff --git a/post/action-types.yml b/post/action-types.yml index 4140a30..a62ac6a 100644 --- a/post/action-types.yml +++ b/post/action-types.yml @@ -6,6 +6,9 @@ inputs: command: type: string + pre_retry_command: + type: string + with: type: string diff --git a/post/action.yml b/post/action.yml index f158adc..65432f0 100644 --- a/post/action.yml +++ b/post/action.yml @@ -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 diff --git a/pre/action-types.yml b/pre/action-types.yml index 4140a30..a62ac6a 100644 --- a/pre/action-types.yml +++ b/pre/action-types.yml @@ -6,6 +6,9 @@ inputs: command: type: string + pre_retry_command: + type: string + with: type: string diff --git a/pre/action.yml b/pre/action.yml index 911bd11..3485f84 100644 --- a/pre/action.yml +++ b/pre/action.yml @@ -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