From fa685018701fcd1200d800a0e02068d4aa942a83 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 7ed407df..9a16006c 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 4140a305..a62ac6a1 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 ab79cc84..b47ea220 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 4140a305..a62ac6a1 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 19481b53..0606c6bd 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 4140a305..a62ac6a1 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 f158adcc..65432f0b 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 4140a305..a62ac6a1 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 911bd117..3485f84c 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