From 7875979e904bec1e6d853dabf0fa2cc208a3e2d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Le=20Meur?= Date: Tue, 21 Nov 2023 22:44:09 +0100 Subject: [PATCH] bump: a subject fdsfdfsdfsdfs sdfsdf sdf sd fsd f sdf sdf sdfsd f sf --- .github/workflows/release.yml | 23 ++++++++-------------- charts/basic-helm-chart-example/Chart.yaml | 2 +- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8e0979d05..cd97b92c5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,39 +38,32 @@ jobs: run: | # KISS, last commit subject as changelog for every modified chart changelog=$(git log --format=%s -n 1) - echo "= changelog: ${changelog}" # Set IFS to a comma to split the string into an array IFS=',' read -ra changedCharts <<< "${{ steps.chart_releaser.outputs.changed_charts }}" for chart in "${changedCharts[@]}"; do chartName=$(echo "${chart}" | cut -d '/' -f 2) - echo "= chartName: ${chartName}" # Retrieve version from Chart.yaml version=$(yq '.version' "${chart}/Chart.yaml") - echo "= version: ${version}" - tag="${chartName}-${version}" - echo "= tag: ${tag}" # Retrive release id and body from tag - release=$(curl -L "https://api.github.com/repos/${{ github.repository }}/releases/tags/${tag}") + tag="${chartName}-${version}" + release=$(curl --location --silent --fail --show-error "https://api.github.com/repos/${{ github.repository }}/releases/tags/${tag}") releaseId=$(echo "${release}" | jq --raw-output '.id') - echo "= releaseId: ${releaseId}" releaseBody=$(echo "${release}" | jq --raw-output '.body') - echo "= releaseBody: ${releaseBody}" - # Update release newlines="\r\n\r\n" body="${releaseBody}${newlines}## Changelog${newlines}${changelog}" - echo "= body:" + echo "= release description for ${tag}:" echo "${body}" - curl -L \ + curl --silent --fail --show-error --output /dev/null --location \ -X PATCH \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ + --header "Accept: application/vnd.github+json" \ + --header "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ + --header "X-GitHub-Api-Version: 2022-11-28" \ "https://api.github.com/repos/${{ github.repository }}/releases/${releaseId}" \ - -d "{\"body\":\"${body}\"}" + --data "{\"body\":\"${body}\"}" done \ No newline at end of file diff --git a/charts/basic-helm-chart-example/Chart.yaml b/charts/basic-helm-chart-example/Chart.yaml index b597949e9..390028d7e 100644 --- a/charts/basic-helm-chart-example/Chart.yaml +++ b/charts/basic-helm-chart-example/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.2.3 +version: 1.2.4 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to