Open Amndeep7 opened 1 year ago
so we don't lose it
- name: Get release tags
shell: bash
id: get-release-version
run: |
RELEASE_VERSION=$(git describe --abbrev=0 --tags | sed 's/v//')
if [[ "$RELEASE_VERSION" =~ ^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$ ]]; then
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
else
echo "Release version $RELEASE_VERSION does not match expected regex"
exit 1
fi