Huiwen d6e3da3719
[gha] correct code new version detection (#19933)
* [gha] correct new version detect

* fixup
2024-06-19 12:43:14 +02:00

17 lines
536 B
TypeScript

// Copyright (c) 2024 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License.AGPL.txt in the project root for license information.
import { $ } from "bun";
import { updateCodeIDEConfigMapJson } from "./lib/code-pin-version"
import { appendGitHubOutput } from "./lib/common";
$.nothrow();
const newVersion = await updateCodeIDEConfigMapJson();
if (newVersion) {
console.log("new version released", newVersion);
await appendGitHubOutput(`codeVersion=${newVersion}`)
}