Skip to content

Commit

Permalink
feat(ci): enhance release verification with detailed status messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gsinghjay committed Jan 1, 2025
1 parent e5135fc commit 5f00625
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -288,17 +288,26 @@ jobs:
env:
GH_TOKEN: ${{ secrets.PAT_TOKEN }}
run: |
echo "=== Verifying Release ==="
# Get the latest version from git tags
VERSION=$(git describe --tags --abbrev=0)
VERSION=${VERSION#v} # Remove 'v' prefix
echo "Latest version tag: v${VERSION}"
# Check if release exists
if ! gh release view "v${VERSION}" &>/dev/null; then
echo "Release v${VERSION} was not created successfully"
echo "Error: Release v${VERSION} was not created successfully"
exit 1
fi
echo "Release v${VERSION} verified successfully"
# Get release type
if [[ "${VERSION}" == *"-beta."* ]]; then
echo "Successfully verified beta release v${VERSION}"
elif [[ "${VERSION}" == *"-rc."* ]]; then
echo "Successfully verified release candidate v${VERSION}"
else
echo "Successfully verified stable release v${VERSION}"
fi
##########################################################################
# 4. Tag Validation Job
Expand Down

0 comments on commit 5f00625

Please sign in to comment.