Skip to content

Commit

Permalink
Add GH release link to Slack (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
arddluma authored Jun 11, 2021
1 parent d85a280 commit 63c8c89
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .circleci/announcePublish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ cat <<EOM
"color": "#33CC66",
"pretext": "A new version of $applicationName is available for use. :circleci-pass:",
"title": "$CIRCLE_PROJECT_REPONAME",
"title_link": "https://circleci.com/workflow-run/$CIRCLE_WORKFLOW_WORKSPACE_ID",
"text": "artifact published: $package",
"title_link": "https://github.com/etherspot/etherspot-sdk/releases/tag/$PACKAGE_VERSION",
"text": "Version: $package",
"ts": $(date '+%s')
}
]
Expand Down
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ jobs:
name: Announce Publish
command: |
chmod +x .circleci/announcePublish.sh
.circleci/announcePublish.sh "Etherspot SDK" "$(node -e "console.log(require('./package.json').name)")@$(node -e "console.log(require('./package.json').version)")"
PACKAGE_VERSION="$(jq .version package.json -r)"
.circleci/announcePublish.sh "Etherspot SDK" "$PACKAGE_VERSION"
- slack/status:
fail_only: true
failure_message: "Triggered by: *${CIRCLE_USERNAME}* \n\n Ooops! The *$CIRCLE_JOB* job has failed! :circleci-fail:"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "etherspot",
"version": "1.4.1",
"version": "1.4.2",
"description": "Etherspot SDK",
"keywords": [
"ether",
Expand Down

0 comments on commit 63c8c89

Please sign in to comment.