Skip to content

Commit

Permalink
Fix Slack notifications (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
arddluma authored Jun 11, 2021
1 parent 63c8c89 commit 34cfbfe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .circleci/announcePublish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cat <<EOM
"color": "#33CC66",
"pretext": "A new version of $applicationName is available for use. :circleci-pass:",
"title": "$CIRCLE_PROJECT_REPONAME",
"title_link": "https://github.com/etherspot/etherspot-sdk/releases/tag/$PACKAGE_VERSION",
"title_link": "https://github.com/etherspot/etherspot-sdk/releases/tag/$package",
"text": "Version: $package",
"ts": $(date '+%s')
}
Expand Down
3 changes: 1 addition & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ jobs:
name: Announce Publish
command: |
chmod +x .circleci/announcePublish.sh
PACKAGE_VERSION="$(jq .version package.json -r)"
.circleci/announcePublish.sh "Etherspot SDK" "$PACKAGE_VERSION"
.circleci/announcePublish.sh "Etherspot SDK" "$(node -e "console.log(require('./package.json').name)")@$(node -e "console.log(require('./package.json').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.2",
"version": "1.4.3",
"description": "Etherspot SDK",
"keywords": [
"ether",
Expand Down

0 comments on commit 34cfbfe

Please sign in to comment.