Skip to content

Commit

Permalink
Fixed release github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks-D committed Dec 19, 2023
1 parent c62676d commit 2d0a8e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ jobs:
run: |
PUSHED_TAG=${GITHUB_REF##*/}
CURR_VER=$( grep version ./crates/retrying-core/Cargo.toml | head -n 1 | awk '{print $3}' | tr -d '"' )
if [[ "${PUSHED_TAG}" != "v${CURR_VER}" ]]; then
echo "Cargo metadata (/crates/retrying/Cargo.toml) has version set to ${CURR_VER}, but got pushed tag ${PUSHED_TAG}."
if [[ "${PUSHED_TAG}" != "retrying-v${CURR_VER}" ]]; then
echo "Cargo metadata (./crates/retrying-core/Cargo.toml) has version set to ${CURR_VER}, but got pushed tag ${PUSHED_TAG}."
exit 1
fi
- name: compare git tag with cargo metadata for retrying
run: |
PUSHED_TAG=${GITHUB_REF##*/}
CURR_VER=$( grep version ./crates/retrying/Cargo.toml | head -n 1 | awk '{print $3}' | tr -d '"' )
if [[ "${PUSHED_TAG}" != "v${CURR_VER}" ]]; then
echo "Cargo metadata (/crates/retrying/Cargo.toml) has version set to ${CURR_VER}, but got pushed tag ${PUSHED_TAG}."
if [[ "${PUSHED_TAG}" != "retrying-v${CURR_VER}" ]]; then
echo "Cargo metadata (./crates/retrying/Cargo.toml) has version set to ${CURR_VER}, but got pushed tag ${PUSHED_TAG}."
exit 1
fi
Expand Down

0 comments on commit 2d0a8e9

Please sign in to comment.