Adding github token in inputs for graphql request

This commit is contained in:
Shivam Gupta
2021-03-17 13:51:23 +05:30
parent bf16f9a451
commit 91f91ae6d6
3 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,10 @@ inputs:
description: 'Version of helm'
required: true
default: 'latest'
token:
description: 'Github token'
default: ${{ github.token }}
required: true
outputs:
helm-path:
description: 'Path to the cached helm binary'

View File

@ -158,6 +158,7 @@ function run() {
else if (!version.toLocaleLowerCase().startsWith('v')) {
version = 'v' + version;
}
core.debug(util.format("Downloading %s", version));
let cachedPath = yield downloadHelm(version);
try {
if (!process.env['PATH'].startsWith(path.dirname(cachedPath))) {

View File

@ -137,6 +137,7 @@ async function run() {
version = 'v' + version;
}
core.debug(util.format("Downloading %s",version));
let cachedPath = await downloadHelm(version);
try {