mirror of
https://github.com/Azure/setup-helm.git
synced 2025-11-08 05:26:56 +00:00
Adding github token in inputs for graphql request
This commit is contained in:
parent
bf16f9a451
commit
91f91ae6d6
3 changed files with 6 additions and 0 deletions
|
|
@ -5,6 +5,10 @@ inputs:
|
||||||
description: 'Version of helm'
|
description: 'Version of helm'
|
||||||
required: true
|
required: true
|
||||||
default: 'latest'
|
default: 'latest'
|
||||||
|
token:
|
||||||
|
description: 'Github token'
|
||||||
|
default: ${{ github.token }}
|
||||||
|
required: true
|
||||||
outputs:
|
outputs:
|
||||||
helm-path:
|
helm-path:
|
||||||
description: 'Path to the cached helm binary'
|
description: 'Path to the cached helm binary'
|
||||||
|
|
|
||||||
|
|
@ -158,6 +158,7 @@ function run() {
|
||||||
else if (!version.toLocaleLowerCase().startsWith('v')) {
|
else if (!version.toLocaleLowerCase().startsWith('v')) {
|
||||||
version = 'v' + version;
|
version = 'v' + version;
|
||||||
}
|
}
|
||||||
|
core.debug(util.format("Downloading %s", version));
|
||||||
let cachedPath = yield downloadHelm(version);
|
let cachedPath = yield downloadHelm(version);
|
||||||
try {
|
try {
|
||||||
if (!process.env['PATH'].startsWith(path.dirname(cachedPath))) {
|
if (!process.env['PATH'].startsWith(path.dirname(cachedPath))) {
|
||||||
|
|
|
||||||
|
|
@ -137,6 +137,7 @@ async function run() {
|
||||||
version = 'v' + version;
|
version = 'v' + version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
core.debug(util.format("Downloading %s",version));
|
||||||
let cachedPath = await downloadHelm(version);
|
let cachedPath = await downloadHelm(version);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue