Skip to content

Commit 958f346

Browse files
authored
fix: Set CURR_VERSION for new v2 release-prep calls (#1991)
* Set CURR_VERSION for new v2 release-prep calls * Adjust where v is placed * Update manual_msi_build to use correct curr_version
1 parent 44e87b9 commit 958f346

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/manual_msi_build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Install tools
2222
run: make install-tools
2323
- name: Release Prep
24-
run: make release-prep
24+
run: make release-prep CURR_VERSION=${{ github.event.inputs.version }}
2525
- name: Build Binaries
2626
run: make build-binaries
2727
- name: Copy Windows Collector Binary

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
run: make install-tools
2020
# Needed until supervisor binary is released
2121
- name: Build Supervisor Binary
22-
run: make release-prep
22+
run: make release-prep CURR_VERSION=${{ github.ref_name }}
2323
- name: Build Windows Binaries
2424
run: make build-binaries
2525
- name: Copy Windows Collector Binary

.goreleaser.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ project_name: observiq-otel-collector
44

55
before:
66
hooks:
7-
- make release-prep CURR_VERSION={{ .Version }}
7+
- make release-prep CURR_VERSION=v{{ .Version }}
88
- make build-all OUTDIR="tmp"
99

1010
after:

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ update-modules:
244244
release-prep:
245245
@rm -rf release_deps
246246
@mkdir release_deps
247-
@echo 'v$(CURR_VERSION)' > release_deps/VERSION.txt
247+
@echo '$(CURR_VERSION)' > release_deps/VERSION.txt
248248
bash ./buildscripts/download-dependencies.sh release_deps
249249
@cp -r ./plugins release_deps/
250250
@cp service/com.observiq.collector.plist release_deps/com.observiq.collector.plist

0 commit comments

Comments
 (0)