Skip to content

Commit

Permalink
update minimum version allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
afujiwara-roblox committed Mar 29, 2024
1 parent e7f5bf6 commit bd16dba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> {
try {
Expand Down Expand Up @@ -60,7 +60,7 @@ async function run(): Promise<void> {
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`
);
}

Expand Down

0 comments on commit bd16dba

Please sign in to comment.