Skip to content

Commit

Permalink
fix: trigger release
Browse files Browse the repository at this point in the history
  • Loading branch information
henrywhitaker3 committed Jun 25, 2024
1 parent dd4c523 commit 9e0c79a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,19 @@ jobs:
build-args: |
VERSION=${{ github.ref_name }}
- name: Get chart version
run: |
CHART_VERSION=$(cat chart/Chart.yaml | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+$") | awk -F. -v OFS=. '{$NF += 1 ; print}')
echo "CHART_VERSION=${CHART_VERSION}" >> $GITHUB_ENV
- name: Update chart AppVersion
uses: mikefarah/yq@master
with:
cmd: yq -i '.appVerison = "${{ github.ref_name }}"' 'chart/Chart.yaml'
- name: Update chart Version
uses: mikefarah/yq@master
with:
cmd: yq -i '.verison = "${{ env.CHART_VERSION }}"' 'chart/Chart.yaml'
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore(chart): update version to ${{ github.ref_name }}"
1 change: 1 addition & 0 deletions .github/workflows/versioning.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 9e0c79a

Please sign in to comment.