Skip to content

Commit c124eb3

Browse files
committed
chore: add changelog entry on ci-bump-component-version
1 parent 04c1809 commit c124eb3

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/ci-bump-component-versions.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,19 @@ jobs:
7070
echo "branch=otel-release/${next_beta_core}" >> $GITHUB_ENV
7171
fi
7272
73+
- name: Add changelog entry
74+
id: add_changelog_entry
75+
run: |
76+
output=$(./scripts/bump-component-versions.sh)
77+
filepath=$(make -s chlog-new)
78+
yq -i '
79+
.change_type = "enhancement" |
80+
.component = "distribution/nrdot-collector" |
81+
.note = "Bump otel component versions from ${{ env.current_beta_core }} to ${{ env.next_beta_core }}"
82+
' "$filepath"
83+
echo "Changelog:"
84+
cat "$filepath"
85+
7386
- name: Commit Component Version Bump
7487
if: steps.bump_component_versions.outputs.has_changes == 'true'
7588
run: |

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ CHLOGGEN_FILENAME?=$(shell git branch --show-current)
194194
.PHONY: chlog-new
195195
chlog-new:
196196
$(CHLOGGEN) new --config $(CHLOGGEN_CONFIG) --filename $(CHLOGGEN_FILENAME)
197+
@echo ".chloggen/$(CHLOGGEN_FILENAME).yaml"
197198

198199
.PHONY: chlog-validate
199200
chlog-validate: ${CHLOGGEN}

0 commit comments

Comments
 (0)