forked from eclipse-tractusx/item-relationship-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request eclipse-tractusx#504 from catenax-ng/feature/TRI-1…
…135-extend-helm-chart-releaser feat(impl):[TRI-1135] extend helm chart releaser to include last Chan…
- Loading branch information
Showing
4 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
release-notes-file: CHANGELOG-temp.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,15 +60,31 @@ jobs: | |
version: v3.8.1 | ||
|
||
- name: Update helm dependencies for irs | ||
working-directory: charts/irs-helm/ | ||
run: | | ||
cd charts/irs-helm | ||
helm repo add bitnami https://charts.bitnami.com/bitnami | ||
helm repo add minio https://charts.min.io/ | ||
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts | ||
helm repo add grafana https://grafana.github.io/helm-charts | ||
helm dependency update | ||
- name: Create temporary CHANGELOG file for helm release | ||
working-directory: charts/irs-helm/ | ||
run: | | ||
touch CHANGELOG-temp.md | ||
currentVersionNumber=$(echo ${{ needs.get-helm-charts-versions-irs.outputs.current_version }} | sed -e "s/^irs-helm-//" ) | ||
echo currentVersionNumber=$currentVersionNumber | ||
sed -n -e '/## \['"${currentVersionNumber}"'\]/,/## \[/ p' CHANGELOG.md | head -n -1 | tail -n +2 >> CHANGELOG-temp.md | ||
echo **Full Changelog**: ${{ github.server_url }}/${{ github.repository }}/compare/${{ needs.get-helm-charts-versions-irs.outputs.latest_version }}...${{ needs.get-helm-charts-versions-irs.outputs.current_version }} >> CHANGELOG-temp.md | ||
echo "cat CHANGELOG-temp.md" | ||
cat CHANGELOG-temp.md | ||
- name: Run chart-releaser | ||
uses: helm/[email protected] | ||
with: | ||
config: ./.github/configs/cr-config.yml | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |