Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit 477e6e2

Browse files
committed
chore: check if the version must use the fallback after coming from a Git SHA
1 parent a81db93 commit 477e6e2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

internal/common/defaults.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ func InitVersions() {
7979
}
8080
BeatVersion = v
8181

82+
// detects if the BeatVersion is set by the GITHUB_CHECK_SHA1 variable
83+
BeatVersion = utils.CheckPRVersion(BeatVersion, BeatVersionBase)
84+
8285
StackVersion = shell.GetEnv("STACK_VERSION", BeatVersionBase)
8386
v, err = utils.GetElasticArtifactVersion(StackVersion)
8487
if err != nil {

0 commit comments

Comments
 (0)