Skip to content

Commit

Permalink
chore: fix path to changelog (#264)
Browse files Browse the repository at this point in the history
* chore: fix path to changelog

* chore: fix steps not running on releases
  • Loading branch information
kleyow authored Feb 24, 2021
1 parent f7ba44c commit bcb0c86
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ jobs:
# Note: this is rather imperfect, but will do for now
name: Format the changelog into the github release body and get release tag
command: |
git diff --no-indent-heuristic master~1 HEAD CHANGELOG.md | sed -n '/^+[^+]/ s/^+//p' > /tmp/changes
git diff --no-indent-heuristic master~1 HEAD src/CHANGELOG.md | sed -n '/^+[^+]/ s/^+//p' > /tmp/changes
echo 'export RELEASE_CHANGES=`cat /tmp/changes`' >> $BASH_ENV
echo 'export RELEASE_TAG=`cat src/package-lock.json | jq -r .version`' >> $BASH_ENV
- run:
Expand All @@ -385,7 +385,7 @@ jobs:
tag: v${RELEASE_TAG}
title: v${RELEASE_TAG} Release
description: ${RELEASE_CHANGES}
file-path: CHANGELOG.md
file-path: src/CHANGELOG.md
- slack/status:
webhook: "$SLACK_WEBHOOK_ANNOUNCEMENT"
success_message: '*"${CIRCLE_PROJECT_REPONAME}"* - Release \`"v${RELEASE_TAG}"\` \nhttps://github.com/mojaloop/"${CIRCLE_PROJECT_REPONAME}"/releases/tag/"v${RELEASE_TAG}"'
Expand Down Expand Up @@ -531,6 +531,8 @@ workflows:
- validate-openapi
- test-unit
filters:
tags:
only: /v[0-9]+(\.[0-9]+)*(\-snapshot)?/
branches:
ignore:
- /feature*/
Expand All @@ -541,6 +543,8 @@ workflows:
requires:
- build-local
filters:
tags:
only: /v[0-9]+(\.[0-9]+)*(\-snapshot)?/
branches:
ignore:
- /feature*/
Expand All @@ -551,6 +555,8 @@ workflows:
requires:
- build-local
filters:
tags:
only: /v[0-9]+(\.[0-9]+)*(\-snapshot)?/
branches:
ignore:
- /feature*/
Expand Down

0 comments on commit bcb0c86

Please sign in to comment.