Skip to content

Commit

Permalink
fix(mattermost): add github debug link if any
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon committed Jul 20, 2023
1 parent bd9748a commit 48eb416
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ See [Plugins details](./advanced/plugins.md)
- on demand resource cleaner
- ...
- post-deploy plugins
- notify mattermost (coming soon)
- notify mattermost/slack
- ...
6 changes: 6 additions & 0 deletions plugins/contrib/post-deploy/notify-mattermost.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ module.exports = async (manifests, options, context) => {
deploymentMessage.push(
new AggregateError(errors, "errors encountered during deployment").message
)
// if we're running through GitHub actions
if (process.env.GITHUB_JOB) {
deploymentMessage.push(
`🔎 ${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}/jobs/${process.env.GITHUB_JOB}`
)
}
}

await new Promise((resolve, reject) => {
Expand Down

0 comments on commit 48eb416

Please sign in to comment.