Skip to content

Commit

Permalink
chore(ci): Enhanced tag fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdip-b committed Jan 23, 2025
1 parent 37311e8 commit 41f22b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ jobs:
id: fetch-tag
run: |
if [ "${{ github.ref_name }}" == "main" ]; then
version=`gh release list -L 1 --exclude-pre-releases --json tagName --jq ".[0].tagName"`
version=`gh release list -L 1 --exclude-pre-releases --json tagName --jq ".[0].tagName" | sed 's/^v//'`
else
version=`gh release list -L 1 --json tagName --jq ".[0].tagName"`
version=`gh release list --json tagName --jq ".[].tagName" | grep "stage" | head -n 1 | sed 's/^v//'`
fi
echo "Working with version: $version"
echo "version=$version" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 41f22b0

Please sign in to comment.