From 4d0bcca4915ed43af23aa84917471f9f49fdc0e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Wa=C5=9B?= Date: Thu, 30 May 2024 15:18:57 +0200 Subject: [PATCH 1/2] Don't use an external action for generating a changelog The generated changelog was not used, because it was not located in the chart directory. Releases should only include files commited in the repository, so avoid generatic a changelog file and instead use the GitHub API to generate notes automatically in the GitHub release. --- .github/changelog-config.json | 25 ------------------------- .github/workflows/ci-cd.yaml | 15 +-------------- 2 files changed, 1 insertion(+), 39 deletions(-) delete mode 100644 .github/changelog-config.json diff --git a/.github/changelog-config.json b/.github/changelog-config.json deleted file mode 100644 index 970fade0..00000000 --- a/.github/changelog-config.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "categories": [ - { - "title": "## Breaking Changes", - "labels": [ "breaking-change" ] - } - ], - "ignore_labels": [ - "release-note-none" - ], - "template": "## Changes\n\n${{UNCATEGORIZED}}\n\n${{CHANGELOG}}", - "pr_template": "- ${{TITLE}}. (#${{NUMBER}})", - "base_branches": [ - "main" - ], - "tag_resolver": { - "filter": { - "pattern": "trino-(.+)" - }, - "transformer": { - "pattern": "trino-(.+)", - "target": "$1" - } - } -} diff --git a/.github/workflows/ci-cd.yaml b/.github/workflows/ci-cd.yaml index e3346261..e9025171 100644 --- a/.github/workflows/ci-cd.yaml +++ b/.github/workflows/ci-cd.yaml @@ -100,27 +100,14 @@ jobs: if: github.event_name != 'pull_request' steps: - uses: actions/checkout@v4 - with: - # history is required to generate changelog - fetch-depth: 0 - name: Configure Git run: | git config user.name "$GITHUB_ACTOR" git config user.email "$GITHUB_ACTOR@users.noreply.github.com" - - name: Build release changelog - id: github_release - uses: mikepenz/release-changelog-builder-action@v4 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - configuration: '.github/changelog-config.json' - outputFile: ${{ runner.temp }}/CHANGELOG.md - - name: Inspect changelog - run: cat ${{ runner.temp }}/CHANGELOG.md - name: Release charts uses: helm/chart-releaser-action@v1.6.0 env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - CR_RELEASE_NOTES_FILE: ${{ runner.temp }}/CHANGELOG.md + CR_GENERATE_RELEASE_NOTES: true # If we didn't bump the chart version then we can skip the release CR_SKIP_EXISTING: true From b0e04a0388bc98b5c125d0c59e933c10bef0a630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Wa=C5=9B?= Date: Thu, 30 May 2024 15:21:12 +0200 Subject: [PATCH 2/2] Update version to 0.22.0 --- README.md | 2 +- charts/trino/Chart.yaml | 2 +- charts/trino/README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a377e88e..fc1af83d 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ You can then run `helm search repo trino` to see the charts. Then you can install chart using: ```console -helm install my-trino trino/trino --version 0.21.0 +helm install my-trino trino/trino --version 0.22.0 ``` Also, you can check the manifests using: diff --git a/charts/trino/Chart.yaml b/charts/trino/Chart.yaml index 3e3ec42e..addf7c33 100644 --- a/charts/trino/Chart.yaml +++ b/charts/trino/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: 0.21.0 +version: 0.22.0 # 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 diff --git a/charts/trino/README.md b/charts/trino/README.md index fecbcabc..b68bd98f 100644 --- a/charts/trino/README.md +++ b/charts/trino/README.md @@ -1,6 +1,6 @@ # trino -![Version: 0.21.0](https://img.shields.io/badge/Version-0.21.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 448](https://img.shields.io/badge/AppVersion-448-informational?style=flat-square) +![Version: 0.22.0](https://img.shields.io/badge/Version-0.22.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 448](https://img.shields.io/badge/AppVersion-448-informational?style=flat-square) Fast distributed SQL query engine for big data analytics that helps you explore your data universe