Skip to content

Commit

Permalink
debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimjaved12 committed Jan 30, 2024
1 parent 6988d59 commit 39adb8b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/weekly_csv_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,25 @@ jobs:
run: |
git fetch --tags
LATEST_TAG=$(git tag | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+-csv$' | sort -V | tail -n1)
echo "latest tag"
echo $LATEST_tag
# If no tags exist, start with v1.0.0-csv
if [ -z "$LATEST_TAG" ]
then
echo "latest tag not set"
LATEST_TAG="v1.0.0-csv"
fi
echo $LATEST_TAG
BASE_TAG=${LATEST_TAG#v} # Remove the leading 'v'
BASE_TAG=${BASE_TAG%-csv} # Remove the trailing '-csv'
echo "here0"
IFS='.' read -a TAG_PARTS <<< "$BASE_TAG"
echo "here1"
((TAG_PARTS[2]++)) # Increment the patch number
echo "here2"
NEW_TAG="v${TAG_PARTS[0]}.${TAG_PARTS[1]}.${TAG_PARTS[2]}-csv"
echo "new tag"
echo $NEW_TAG
echo "TAG_NAME=$NEW_TAG" >> $GITHUB_ENV
- name: Format Release Date for Release Title
Expand Down

0 comments on commit 39adb8b

Please sign in to comment.