Skip to content

Commit

Permalink
fix release build
Browse files Browse the repository at this point in the history
Signed-off-by: Huabing Zhao <[email protected]>
  • Loading branch information
zhaohuabing committed Nov 6, 2024
1 parent 0d785e0 commit 95ed8da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ jobs:
- uses: ./tools/github-actions/setup-deps

# test
- name: Extract Release Tag and Commit SHA
id: vars
shell: bash
run: |
echo "release_tag=$(echo ${GITHUB_REF##*/})" >> $GITHUB_ENV
echo "without_v_release_tag=${GITHUB_REF##*/:1}" >> $GITHUB_ENV
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
echo "$(echo ${GITHUB_REF##*/})"
echo "${GITHUB_REF##*/:1}"
echo ${{ env.without_v_release_tag }}
- name: Run Coverage Tests
run: make go.test.coverage
- name: Upload coverage to Codecov
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
shell: bash
run: |
echo "release_tag=$(echo ${GITHUB_REF##*/})" >> $GITHUB_ENV
echo "without_v_release_tag=${release_tag:1}" >> $GITHUB_ENV
echo "without_v_release_tag=${GITHUB_REF##*/:1}" >> $GITHUB_ENV
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Login to DockerHub
Expand Down

0 comments on commit 95ed8da

Please sign in to comment.