Skip to content

Commit

Permalink
fix(github): chart version (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
Os-carsun authored Nov 13, 2023
1 parent 1378e01 commit a2c3c5f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/update-value.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,13 @@ jobs:
export poster="${{ fromJson(github.event.inputs.version).poster }}"
export cronjob="${{ fromJson(github.event.inputs.version).cronjob }}"
export date=$(date +%y%m%d)
version="$(cat charts/agh2/Chart.yaml | grep -e '^version:' | awk '{print $2}')"
sed -i "s/$version/$(semver bump patch $version)/g" .github/workflows/Chart.yaml.template
envsubst < .github/workflows/values.template > "charts/agh2/values.yaml"
envsubst < .github/workflows/Chart.yaml.template > "charts/agh2/Chart.yaml"
cat charts/agh2/values.yaml
cat charts/agh2/Chart.yaml
- name: update chart version
working-directory: charts/agh2
run: |
version="$(cat Chart.yaml | grep -e '^version:' | awk '{print $2}')"
sed -i "s/$version/$(semver bump patch $version)/g" Chart.yaml
- name: Create PR
uses: peter-evans/create-pull-request@v4
with:
Expand Down

0 comments on commit a2c3c5f

Please sign in to comment.