Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoravong committed Sep 18, 2023
1 parent d5b3297 commit 691eb4a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Create kind cluster
uses: helm/kind-action@v1.8.0
# Only build a kind cluster if there are chart changes to test.
if: steps.list-chaznged.outputs.changed == 'true'
if: steps.list-changed.outputs.changed == 'true'
# TODO: make this test runnable from a makefile command
- name: Run chart-testing (install)
run: ct install --config=ct.yaml
10 changes: 9 additions & 1 deletion .github/workflows/validate-changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,20 @@ jobs:
with:
fetch-depth: 0

- name: Run chart-testing (lint)
- name: Setup Helm
uses: azure/setup-helm@v3.5

- name: Setup ct (chart testing)
uses: helm/chart-testing-action@v2.4.0

- name: Run Helm chart-testing (lint)
run: make lint

- name: Validate changelog files
run: make chlog-validate

- name: Read current version of the Chart
id: read-chart
uses: cumulusds/get-yaml-paths-action@v1
with:
file: helm-charts/splunk-otel-collector/Chart.yaml
Expand Down
2 changes: 1 addition & 1 deletion ci_scripts/chloggen-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ mv "$TEMP_CHANGELOG" "CHANGELOG.md"
# Insert the line about the Splunk OpenTelemetry Collector version adopted in this Kubernetes release
appVersion=$(grep "appVersion:" helm-charts/splunk-otel-collector/Chart.yaml | awk '{print $2}')
insert_line="This Splunk OpenTelemetry Collector for Kubernetes release adopts the [Splunk OpenTelemetry Collector v${appVersion}](https://github.com/signalfx/splunk-otel-collector/releases/tag/v${appVersion}).\n"
awk -v n=11 -v s="$insert_line" 'NR == n {print s} {print}' CHANGELOG.md > $TEMP_CHANGELOG
awk -v n=9 -v s="$insert_line" 'NR == n {print s} {print}' CHANGELOG.md > $TEMP_CHANGELOG
mv "$TEMP_CHANGELOG" "CHANGELOG.md"

echo "Successfully updated PR links in CHANGELOG.md"
Expand Down

0 comments on commit 691eb4a

Please sign in to comment.