diff --git a/.github/workflows/chart.yaml b/.github/workflows/chart.yaml index bdbb0ee..45241bf 100644 --- a/.github/workflows/chart.yaml +++ b/.github/workflows/chart.yaml @@ -31,9 +31,10 @@ jobs: - name: Update App Version run: | - sed -i "s/appVersion:.*/appVersion: ${{ steps.app_version.outputs.version }}/" charts/lobe-chat/Chart.yaml - + sed -i "s/appVersion:.*/appVersion: \"${{ steps.app_version.outputs.version }}\"/" charts/lobe-chat/Chart.yaml + - name: Update Chart Version + id: update_chart_version run: | major=$(echo ${{ steps.chart_version.outputs.version }} | cut -d. -f1) minor=$(echo ${{ steps.chart_version.outputs.version }} | cut -d. -f2) @@ -41,13 +42,14 @@ jobs: patch=$((patch + 1)) version="${major}.${minor}.${patch}" sed -i "s/version:.*/version: $version/" charts/lobe-chat/Chart.yaml + echo "::set-output name=version::${version}" - name: Commit changes run: | git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" git add . - git commit --amend -m "Update chart version to ${{ steps.chart_version.outputs.version }} and app version to ${{ steps.app_version.outputs.version }}" + git commit --amend -m "Update chart version to ${{ steps.update_chart_version.outputs.version }} and app version to ${{ steps.app_version.outputs.version }}" - name: Push changes uses: ad-m/github-push-action@master