Skip to content

Commit

Permalink
fix: Set CURR_VERSION for new v2 release-prep calls (#1991)
Browse files Browse the repository at this point in the history
* Set CURR_VERSION for new v2 release-prep calls

* Adjust where v is placed

* Update manual_msi_build to use correct curr_version
  • Loading branch information
mrsillydog authored Dec 3, 2024
1 parent 44e87b9 commit 958f346
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/manual_msi_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Install tools
run: make install-tools
- name: Release Prep
run: make release-prep
run: make release-prep CURR_VERSION=${{ github.event.inputs.version }}
- name: Build Binaries
run: make build-binaries
- name: Copy Windows Collector Binary
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
run: make install-tools
# Needed until supervisor binary is released
- name: Build Supervisor Binary
run: make release-prep
run: make release-prep CURR_VERSION=${{ github.ref_name }}
- name: Build Windows Binaries
run: make build-binaries
- name: Copy Windows Collector Binary
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ project_name: observiq-otel-collector

before:
hooks:
- make release-prep CURR_VERSION={{ .Version }}
- make release-prep CURR_VERSION=v{{ .Version }}
- make build-all OUTDIR="tmp"

after:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ update-modules:
release-prep:
@rm -rf release_deps
@mkdir release_deps
@echo 'v$(CURR_VERSION)' > release_deps/VERSION.txt
@echo '$(CURR_VERSION)' > release_deps/VERSION.txt
bash ./buildscripts/download-dependencies.sh release_deps
@cp -r ./plugins release_deps/
@cp service/com.observiq.collector.plist release_deps/com.observiq.collector.plist
Expand Down

0 comments on commit 958f346

Please sign in to comment.