Skip to content

Commit

Permalink
add changelog step to create release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: rtang03 <[email protected]>
  • Loading branch information
rtang03 committed Apr 21, 2021
1 parent 2a61494 commit 7a21fbc
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,28 @@ jobs:
run: |
set -x
tar -czvf dev-net.tar.gz /home/runner/work/fabric-es/fabric-es/deployments/dev-net
- name: Generate changelog
uses: charmixer/[email protected]
with:
token: ${{ secrets.CI_TOKEN }}
since_tag: v0.6.1
exclude_tags: "v0.5.13,v0.5.14"
- name: Commit files
env:
CI_USER: ${{ secrets.CI_USER }}
CI_EMAIL: ${{ secrets.CI_EMAIL }}
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
run: |
git config --local user.email "$CI_EMAIL"
git config --local user.name "$CI_USER"
git add CHANGELOG.md && git commit -m 'Updated CHANGELOG.md' && echo ::set-env name=push::1 || echo "No changes to CHANGELOG.md"
- name: Push changes
if: env.push == 1
env:
CI_USER: ${{ secrets.CI_USER }}
CI_TOKEN: ${{ secrets.CI_TOKEN }}
run: |
git push "https://$CI_USER:[email protected]/$GITHUB_REPOSITORY.git" HEAD:master
- name: Create Release
uses: docker://antonyurchenko/git-release:latest
env:
Expand Down
3 changes: 1 addition & 2 deletions packages/fabric-cqrs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"url": "git://github.com/rtang03/fabric-es.git"
},
"keywords": [
"hyperledger-fabric",
"redux"
"hyperledger-fabric"
],
"author": "Ross Tang",
"homepage": "https://github.com/rtang03/fabric-es",
Expand Down
3 changes: 1 addition & 2 deletions packages/gateway-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
},
"keywords": [
"hyperledger-fabric",
"apollo-graphql",
"redis"
"apollo-graphql"
],
"author": "Ross Tang",
"license": "BSD-3-Clause-Clear",
Expand Down
3 changes: 2 additions & 1 deletion packages/operator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"url": "git://github.com/rtang03/fabric-es.git"
},
"keywords": [
"hyperledger-fabric"
"hyperledger-fabric",
"jest"
],
"author": "Ross Tang",
"license": "BSD-3-Clause-Clear",
Expand Down

0 comments on commit 7a21fbc

Please sign in to comment.