Skip to content

Commit 618c8a7

Browse files
authored
Sleep for a few seconds before attempting to publish a new lambda version (#51)
* Sleep for 10 seconds before attempting to publish version
1 parent 8441ddc commit 618c8a7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

actions/deploy-lambda-function/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ runs:
6464
LAMBDA_TAGS: ${{ inputs.function-tags }}
6565
if: inputs.function-tags != ''
6666

67+
# An error occurred (ResourceConflictException) when calling the PublishVersion operation: The operation cannot be performed at this time.
68+
# An update is in progress for resource: arn:aws:lambda:<region>:***:function:<redacted>
69+
- name: 'Let the function settle'
70+
shell: bash
71+
run: sleep 10 # seconds
72+
6773
- name: 'Cut a version of the lambda'
6874
id: publish-version
6975
if: inputs.publish-version == 'true'

0 commit comments

Comments
 (0)