diff --git a/dist/index.js b/dist/index.js index ff28c2e..d89e549 100644 --- a/dist/index.js +++ b/dist/index.js @@ -42212,7 +42212,7 @@ const exec_1 = __nccwpck_require__(2423); const semver_1 = __importDefault(__nccwpck_require__(4056)); const configFile_1 = __importDefault(__nccwpck_require__(3572)); const foreman_1 = __importDefault(__nccwpck_require__(5847)); -const MIN_ARTIFACTORY_FOREMAN_VERSION = "v1.6.1"; +const MIN_ARTIFACTORY_FOREMAN_VERSION = "v1.6.0"; function run() { return __awaiter(this, void 0, void 0, function* () { try { @@ -42248,7 +42248,7 @@ function run() { yield foreman_1.default.authenticate(githubToken); if (artifactoryUrl != "" && artifactoryToken != "") { // both defined if (semver_1.default.compare(release.tag_name, MIN_ARTIFACTORY_FOREMAN_VERSION) == -1) { - throw new Error("Artifactory support requires Foreman version 1.0.5 or later"); + throw new Error(`Artifactory support requires Foreman version ${MIN_ARTIFACTORY_FOREMAN_VERSION} or later`); } yield foreman_1.default.addArtifactoryToken(artifactoryUrl, artifactoryToken); } diff --git a/src/main.ts b/src/main.ts index 65e6c2d..4a4aa1f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -8,7 +8,7 @@ import semver from "semver"; import configFile from "./configFile"; import foreman from "./foreman"; -const MIN_ARTIFACTORY_FOREMAN_VERSION = "v1.6.1"; +const MIN_ARTIFACTORY_FOREMAN_VERSION = "v1.6.0"; async function run(): Promise { try { @@ -60,7 +60,7 @@ async function run(): Promise { if (artifactoryUrl != "" && artifactoryToken != "") { // both defined if (semver.compare(release.tag_name, MIN_ARTIFACTORY_FOREMAN_VERSION) == -1) { throw new Error( - "Artifactory support requires Foreman version 1.0.5 or later" + `Artifactory support requires Foreman version ${MIN_ARTIFACTORY_FOREMAN_VERSION} or later` ); }