mirror of
https://github.com/Azure/setup-helm.git
synced 2025-11-07 21:16:57 +00:00
Escape slash for nodejs
This commit is contained in:
parent
db9832f989
commit
db3e6df453
2 changed files with 4 additions and 4 deletions
|
|
@ -49,7 +49,7 @@ var exec = require("@actions/exec");
|
||||||
var toolCache = require("@actions/tool-cache");
|
var toolCache = require("@actions/tool-cache");
|
||||||
var core = require("@actions/core");
|
var core = require("@actions/core");
|
||||||
var helmToolName = 'helm';
|
var helmToolName = 'helm';
|
||||||
var stableHelmVersion = 'v3.7.1';
|
var stableHelmVersion = 'v3.7.2';
|
||||||
var helmAllReleasesUrl = 'https://api.github.com/repos/helm/helm/releases';
|
var helmAllReleasesUrl = 'https://api.github.com/repos/helm/helm/releases';
|
||||||
function getExecutableExtension() {
|
function getExecutableExtension() {
|
||||||
if (os.type().match(/^Win/)) {
|
if (os.type().match(/^Win/)) {
|
||||||
|
|
@ -174,7 +174,7 @@ function getLatestHelmVersion() {
|
||||||
return __generator(this, function (_a) {
|
return __generator(this, function (_a) {
|
||||||
switch (_a.label) {
|
switch (_a.label) {
|
||||||
case 0:
|
case 0:
|
||||||
command = "curl -Ls https://api.github.com/repos/helm/helm/releases | grep 'v3.[0-9]*.[0-9]*' | sed -E 's/ .*/helm/helm/releases/tag/tag/(v[0-9.]+)\".*/1/g' | head -1 | sed -E 's/.*tag///' | sed -E 's/\".*//'";
|
command = "curl -Ls https://api.github.com/repos/helm/helm/releases | grep 'v3.[0-9]*.[0-9]*' | sed -E 's/ .*/helm/helm/releases/tag/tag/(v[0-9.]+)\".*/\\1/g' | head -1 | sed -E 's/.*tag///' | sed -E 's/\".*//'";
|
||||||
latestHelm = "";
|
latestHelm = "";
|
||||||
latestHelmErr = "";
|
latestHelmErr = "";
|
||||||
options = {};
|
options = {};
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ import * as toolCache from '@actions/tool-cache';
|
||||||
import * as core from '@actions/core';
|
import * as core from '@actions/core';
|
||||||
|
|
||||||
const helmToolName = 'helm';
|
const helmToolName = 'helm';
|
||||||
const stableHelmVersion = 'v3.7.1';
|
const stableHelmVersion = 'v3.7.2';
|
||||||
const helmAllReleasesUrl = 'https://api.github.com/repos/helm/helm/releases';
|
const helmAllReleasesUrl = 'https://api.github.com/repos/helm/helm/releases';
|
||||||
|
|
||||||
export function getExecutableExtension(): string {
|
export function getExecutableExtension(): string {
|
||||||
|
|
@ -106,7 +106,7 @@ export async function downloadHelm(version: string): Promise<string> {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getLatestHelmVersion(): Promise<string>{
|
async function getLatestHelmVersion(): Promise<string>{
|
||||||
const command:string = `curl -Ls https://api.github.com/repos/helm/helm/releases | grep 'v3.[0-9]*.[0-9]*' | sed -E 's/ .*\/helm\/helm\/releases\/tag\/tag\/(v[0-9\.]+)".*/\1/g' | head -1 | sed -E 's/.*tag\///' | sed -E 's/".*//'`;
|
const command:string = `curl -Ls https://api.github.com/repos/helm/helm/releases | grep 'v3.[0-9]*.[0-9]*' | sed -E 's/ .*\/helm\/helm\/releases\/tag\/tag\/(v[0-9\.]+)".*/\\1/g' | head -1 | sed -E 's/.*tag\///' | sed -E 's/".*//'`;
|
||||||
let latestHelm: string = "";
|
let latestHelm: string = "";
|
||||||
let latestHelmErr: string = "";
|
let latestHelmErr: string = "";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue