Skip to content

Commit

Permalink
Fix for setting the commit sha.
Browse files Browse the repository at this point in the history
  • Loading branch information
intl-man committed Nov 14, 2021
1 parent b97894a commit cd7582b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ jobs:
docker push sifchain/sifnoded:${{ steps.version.outputs.version }}
docker push sifchain/ebrelayer:${{ steps.version.outputs.version }}
- name: Get commit hash
id: hash
run: |
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Release a new sifnoded binary
uses: ./sifchain-devops/release
with:
Expand All @@ -44,5 +49,5 @@ jobs:
goversion: "1.16"
project_path: "./cmd/sifnoded"
binary_name: "sifnoded"
ldflags: "-X github.com/cosmos/cosmos-sdk/version.Name=sifchain -X github.com/cosmos/cosmos-sdk/version.ServerName=sifnoded -X github.com/cosmos/cosmos-sdk/version.ClientName=sifnoded -X github.com/cosmos/cosmos-sdk/version.Version=${{ steps.version.outputs.version }} -X github.com/cosmos/cosmos-sdk/version.Commit=${{ env.GITHUB_SHA }}"
ldflags: "-X github.com/cosmos/cosmos-sdk/version.Name=sifchain -X github.com/cosmos/cosmos-sdk/version.ServerName=sifnoded -X github.com/cosmos/cosmos-sdk/version.ClientName=sifnoded -X github.com/cosmos/cosmos-sdk/version.Version=${{ steps.version.outputs.version }} -X github.com/cosmos/cosmos-sdk/version.Commit=${{ steps.hash.outputs.sha_short }}"
sha256sum: true

0 comments on commit cd7582b

Please sign in to comment.