fix: ensure we bind oohelperd with the repo's version number (#558)
Work related to https://github.com/ooni/probe/issues/1506#issuecomment-949715707. This diff cherry-picks from the release/3.11 branch.
This commit is contained in:
parent
8f202a71ac
commit
1f0fcafb8a
6
.github/workflows/oohelperd.yml
vendored
6
.github/workflows/oohelperd.yml
vendored
|
@ -26,6 +26,12 @@ jobs:
|
|||
sudo apt-get install -yq --no-install-recommends curl devscripts \
|
||||
dpkg-dev debhelper git python3 python3-requests python3-gnupg s3cmd
|
||||
|
||||
- name: update the debian changelog
|
||||
run: |
|
||||
version="$(go run ./internal/cmd/printversion)~$GITHUB_RUN_NUMBER"
|
||||
cd ./internal/cmd/oohelperd
|
||||
dch -v "$version" "New version ${version}"
|
||||
|
||||
- name: build deb package
|
||||
run: |
|
||||
cd ./internal/cmd/oohelperd
|
||||
|
|
12
internal/cmd/printversion/main.go
Normal file
12
internal/cmd/printversion/main.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
// Command printversion prints the current version of this repository.
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/ooni/probe-cli/v3/internal/version"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Println(version.Version)
|
||||
}
|
Loading…
Reference in New Issue
Block a user