Skip to content

Commit

Permalink
chore(ci/semrel): also update versions in Chart.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Feb 20, 2024
1 parent 33a2f4d commit b54f991
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ jobs:
cd api && poetry version ${{ steps.semrel.outputs.version }} && cd -
cd ember && yarn version --no-commit-hooks --no-git-tag-version --new-version ${{ steps.semrel.outputs.version }}
- name: Adjust Versions in Chart.yaml
if: steps.semrel.outputs.version != ''
uses: mikefarah/yq@v4.41.1
with:
cmd: yq eval '(.appVersion = "${{ steps.semrel.outputs.version }}") | (.version = "{{ steps.semrel.outputs.version }}" )' --inplace ./charts/outdated/Chart.yaml

- name: Release Commit
uses: EndBug/add-and-commit@v9
if: steps.semrel.outputs.version != ''
Expand All @@ -39,6 +45,7 @@ jobs:
add: |
api/pyproject.toml
ember/package.json
charts/outdated/Chart.yaml
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
Expand Down Expand Up @@ -83,7 +90,7 @@ jobs:
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
helm dependency build charts/outdated
helm package --version ${{ steps.semrel.outputs.version }} --app-version ${{ steps.semrel.outputs.version }} --destination=dist charts/outdated
helm package --destination=dist charts/outdated
- name: Push Chart
if: steps.semrel.outputs.version != ''
Expand Down

0 comments on commit b54f991

Please sign in to comment.