Skip to content

Commit

Permalink
update command
Browse files Browse the repository at this point in the history
  • Loading branch information
onlyjackfrost committed Oct 28, 2024
1 parent e45d840 commit f9a81f4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ui-release-image-stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ jobs:
id: changelog
run: |
echo "Generating change log..."
PREVIOUS_VERSION=release/wren-ui/$(yarn version --json | grep '"data"' | sed -E 's/.*"Current version: ([^"]+)".*/\1/')
PREVIOUS_VERSION=release/wren-ui/$(cd wren-ui && yarn version --json | grep '"data"' | sed -E 's/.*"Current version: ([^"]+)".*/\1/')
echo "Previous version: $PREVIOUS_VERSION"
CHANGE_LOG=$(git log --pretty=format:"%s" $PREVIOUS_VERSION..HEAD | grep wren-ai-service)
echo "================ change log ================"
CHANGE_LOG=$(git log --pretty=format:"%s" $PREVIOUS_VERSION..HEAD | grep wren-ui)
echo "================ change log ================"
# Separate the change log into categories
FEATURES=$(echo "$CHANGE_LOG" | grep "^feat" | sed 's/^/- /')
Expand All @@ -56,7 +58,7 @@ jobs:
echo -e "$FULL_CHANGE_LOG"
echo EOF
} >> $GITHUB_ENV
- name: Upgrade AI Service version
- name: Update Wren-UI version
run: |
version=${{ github.event.inputs.version }}
sed -i '' 's/"version": "[^"]*"/"version": "'"$version"'"/' ./wren-ui/package.json
Expand Down

0 comments on commit f9a81f4

Please sign in to comment.