Update publish message (#22)

This commit is contained in:
Konrad Pabjan
2023-01-09 04:16:12 -05:00
committed by GitHub
parent 7d07d33a07
commit dca2315f75
3 changed files with 10 additions and 31 deletions

View File

@ -20,10 +20,10 @@ async function run(): Promise<void> {
core.setOutput('major-tag', majorTag);
core.info(`The '${majorTag}' major tag now points to the '${sourceTagName}' tag`);
const slackMessage = `The ${majorTag} tag has been successfully updated for the ${context.repo.repo} action to include changes from the ${sourceTagName}`;
const slackMessage = `The ${majorTag} tag has been successfully updated for the ${context.repo.repo} action to include changes from ${sourceTagName}`;
await reportStatusToSlack(slackMessage);
} catch (error) {
core.setFailed(error.message);
core.setFailed((error as Error).message);
const slackMessage = `Failed to update a major tag for the ${context.repo.repo} action`;
await reportStatusToSlack(slackMessage);