Skip to content

Commit

Permalink
Use proper configuration key
Browse files Browse the repository at this point in the history
  • Loading branch information
Ndpnt committed Nov 12, 2024
1 parent c9fa05e commit 4496f52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/dataset/publish/gitlab/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default async function publish({
let projectId = null;
const gitlabAPIUrl = config.get('@opentermsarchive/engine.dataset.apiBaseURL');

const [ owner, repo ] = new URL(config.get('@opentermsarchive/engine.dataset.versionsRepositoryURLGitLab'))
const [ owner, repo ] = new URL(config.get('@opentermsarchive/engine.dataset.versionsRepositoryURL'))
.pathname
.split('/')
.filter(Boolean);
Expand Down Expand Up @@ -101,7 +101,7 @@ export default async function publish({
logger.debug(`package file id: ${packageFilesId}`);

// use the package id to build the download url for the release
const publishedPackageUrl = `${config.get('@opentermsarchive/engine.dataset.versionsRepositoryURLGitLab')}/-/package_files/${packageFilesId}/download`;
const publishedPackageUrl = `${config.get('@opentermsarchive/engine.dataset.versionsRepositoryURL')}/-/package_files/${packageFilesId}/download`;

// Create the release and link the package
const formData = new FormData();
Expand Down

0 comments on commit 4496f52

Please sign in to comment.