WIP: Feature for editing existing Discord Message #19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WIP: needs testing
Added functionality to edit or replace an existing message.
Added 2 new optional input paramters:
Specifies if and how you want to update an already existing message.
none
does not update an existing message,edit
modifies an existing message,replace
deletes an existing message and creates a new one.Default:
none
Specifies which message to update. Defaults to environment variable
discordWebhookLastMessageId
, which is automatically set when a message is successfully created.If you need the messageId from another job or stage, you could utilize the output variable
discordWebhookMessageId
, which is also set by this task.Added output variable: discordWebhookMessageId
Automatically set to the message ID when successful. Can be used across stages/jobs. Requires the task to be named.
Added environment variable: discordWebhookLastMessageId
Automatically set to the message ID when successful. Can be used within the same stage.
Added tests.