Compare commits

...

3 Commits
master ... v1

Author SHA1 Message Date
Imran Ismail
8747e0b5cf Update version to 1.7.3 2022-10-17 02:23:17 +08:00
Imran Ismail
34490be6e7 Use core.getBooleanInput (#280)
* Use core.getBooleanInput

* Update test
2022-10-17 02:22:54 +08:00
Imran Ismail
9fc5df9b9d Increase per page limit to 100 (#278)
* Increase per page limit to 100

* Add build
2022-10-17 02:05:09 +08:00
5 changed files with 9 additions and 6 deletions

View File

@@ -8,6 +8,7 @@ const tempDir = path.join(__dirname, 'runner', 'temp')
process.env['RUNNER_TOOL_CACHE'] = toolDir
process.env['RUNNER_TEMP'] = tempDir
process.env['INPUT_FAIL-FAST'] = 'false'
import * as installer from '../src/installer'

5
dist/index.js vendored
View File

@@ -53,7 +53,7 @@ const fs = __importStar(__nccwpck_require__(7147));
let tempDirectory = process.env['RUNNER_TEMPDIRECTORY'] || '';
const EnhancedOctokit = utils_1.GitHub.plugin(plugin_throttling_1.throttling);
const githubToken = core.getInput('github-token');
const failFast = core.getInput('fail-fast') === 'true' ? true : false;
const failFast = core.getBooleanInput('fail-fast');
let options = {
throttle: {
onRateLimit: (retryAfter, opts) => {
@@ -120,7 +120,8 @@ function getMaxSatisfyingVersion(targetVersion) {
try {
for (var _b = __asyncValues(octokit.paginate.iterator(octokit.repos.listReleases, {
owner: 'kubernetes-sigs',
repo: 'kustomize'
repo: 'kustomize',
per_page: 100
})), _c; _c = yield _b.next(), !_c.done;) {
const response = _c.value;
for (const release of response.data) {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{
"name": "setup-kustomize",
"version": "1.7.1",
"version": "1.7.3",
"private": true,
"description": "Github action to setup-kustomize",
"main": "lib/main.js",

View File

@@ -11,7 +11,7 @@ let tempDirectory = process.env['RUNNER_TEMPDIRECTORY'] || ''
const EnhancedOctokit = GitHub.plugin(throttling)
const githubToken = core.getInput('github-token')
const failFast = core.getInput('fail-fast') === 'true' ? true : false
const failFast = core.getBooleanInput('fail-fast')
let options: OctokitOptions = {
throttle: {
@@ -91,7 +91,8 @@ async function getMaxSatisfyingVersion(
octokit.repos.listReleases,
{
owner: 'kubernetes-sigs',
repo: 'kustomize'
repo: 'kustomize',
per_page: 100
}
)) {
for (const release of response.data) {