--data '{\"text\":\"Failed to update a major tag for the ${{ github.repository }} action\"}' `
${{ secrets.SLACK_WEBHOOK }}
- name:Send slack message
if:success()
run:|
curl `
-X POST `
-H 'Content-type:application/json' `
--data '{\"text\":\"The ${{ steps.update-major-tag.outputs.major-tag }} tag has been successfully updated for the ${{ github.repository }} action to include changes from the ${{ env.TAG_NAME }}\"}' `
core.info(`The '${majorTag}' major tag now points to the '${sourceTagName}' tag`);
constslackMessage=`The ${majorTag} tag has been successfully updated for the ${github_1.context.repo.repo} action to include changes from the ${sourceTagName}`;
awaitreportStatusToSlack(slackMessage);
}
catch(error){
core.setFailed(error.message);
constslackMessage=`Failed to update a major tag for the ${github_1.context.repo.repo} action`;
@ -18,9 +19,22 @@ async function run(): Promise<void> {
core.setOutput('major-tag',majorTag);
core.info(`The '${majorTag}' major tag now points to the '${sourceTagName}' tag`);
constslackMessage=`The ${majorTag} tag has been successfully updated for the ${context.repo.repo} action to include changes from the ${sourceTagName}`;
awaitreportStatusToSlack(slackMessage);
}catch(error){
core.setFailed(error.message);
constslackMessage=`Failed to update a major tag for the ${context.repo.repo} action`;