Skip to content

Commit

Permalink
GHA: fix workflow
Browse files Browse the repository at this point in the history
Signed-off-by: darox <maderdario@gmail.com>
  • Loading branch information
darox committed Jan 16, 2024
1 parent 3dddedb commit 4534bef
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,25 @@ 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)
patch=$(echo ${{ steps.chart_version.outputs.version }} | cut -d. -f3)
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
Expand Down

0 comments on commit 4534bef

Please sign in to comment.