Skip to content

Commit

Permalink
Module description hardcoded along with the paths in Deploy Go Workflow
Browse files Browse the repository at this point in the history
Signed-off-by: sandeep.nishad1 <[email protected]>
  • Loading branch information
sandeepnRES committed Apr 21, 2022
1 parent 8d5b7c2 commit f151fcd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/deploy_go-pkgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ on:
description: 'Go Module name'
default: 'protos-go'
required: true
module_description:
description: 'Small Go Module Description for Release Text'
default: 'Weaver Protos Go'
required: true
version:
description: 'Version for Go Release'
default: 'v0.0.0'
Expand All @@ -31,16 +27,22 @@ jobs:
run: |
if [ "${{ github.event.inputs.module }}" = "protos-go" ]; then
echo "MODULE_TAG=common/protos-go" >> $GITHUB_ENV
echo "MODULE_DESC='GO Weaver Protos'" >> $GITHUB_ENV
elif [ "${{ github.event.inputs.module }}" = "interop" ]; then
echo "MODULE_TAG=core/network/fabric-interop-cc/contracts/interop" >> $GITHUB_ENV
echo "MODULE_DESC='GO Fabric Interop Chaincode'" >> $GITHUB_ENV
elif [ "${{ github.event.inputs.module }}" = "utils" ]; then
echo "MODULE_TAG=core/network/fabric-interop-cc/libs/utils" >> $GITHUB_ENV
echo "MODULE_DESC='GO Fabric Utils Library for Interoperation'" >> $GITHUB_ENV
elif [ "${{ github.event.inputs.module }}" = "assetexchange" ]; then
echo "MODULE_TAG=core/network/fabric-interop-cc/libs/assetexchange" >> $GITHUB_ENV
echo "MODULE_DESC='GO Fabric Library for Asset Exchange'" >> $GITHUB_ENV
elif [ "${{ github.event.inputs.module }}" = "asset-mgmt" ]; then
echo "MODULE_TAG=core/network/fabric-interop-cc/interfaces/asset-mgmt" >> $GITHUB_ENV
echo "MODULE_DESC='GO Fabric Asset Management Interface'" >> $GITHUB_ENV
elif [ "${{ github.event.inputs.module }}" = "go-sdk" ]; then
echo "MODULE_TAG=sdks/fabric/go-sdk" >> $GITHUB_ENV
echo "MODULE_DESC='GO Fabric Weaver SDK'" >> $GITHUB_ENV
else
echo "Module not known to the workflow. Exiting."
exit 1
Expand All @@ -53,7 +55,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ env.MODULE_TAG }}/${{ github.event.inputs.version }}
release_name: ${{ github.event.inputs.version }} - ${{ github.event.inputs.module_description }} - ${{ env.RELEASE_DATE }}
release_name: ${{ github.event.inputs.version }} - ${{ env.MODULE_DESC }} - ${{ env.RELEASE_DATE }}
body: |
- Go Module: `github.com/${GITHUB_REPOSITORY_OWNER}/weaver-dlt-interoperability/${{ env.MODULE_TAG }}`
- Release: ${{ github.event.inputs.version }}
Expand Down

0 comments on commit f151fcd

Please sign in to comment.