Skip to content

Commit

Permalink
fix: Version extraction from Cargo.toml file
Browse files Browse the repository at this point in the history
  • Loading branch information
eickler committed Apr 15, 2024
1 parent 6131675 commit f015519
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ jobs:
- uses: google-github-actions/release-please-action@v4
with:
release-type: rust
- name: Get new version
id: version
run: |
VERSION=$(grep '^version =' Cargo.toml | head -1 | awk -F'"' '{print $2}')
echo "::set-output name=version::$VERSION"
- name: Update Helm chart version
run: |
VERSION=$(cat version.txt)
yq eval -i ".version = \"$VERSION\"" charts/Chart.yaml
yq eval -i ".version = \"${{ steps.version.outputs.version }}\"" charts/Chart.yaml
- name: Commit changes
run: |
git config --local user.email "action@github.com"
Expand Down

0 comments on commit f015519

Please sign in to comment.