mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Fetch existing package details as JSON
This commit is contained in:
@@ -93,7 +93,8 @@ module.exports = async function (packageRepoName, apiToken, version, artifacts)
|
||||
const existingPackageDetails =
|
||||
await request({
|
||||
uri: `https://${apiToken}:@packagecloud.io/api/v1/repos/AtomEditor/${packageRepoName}/package/${type}/${distroName}/${distroVersion}/atom${releaseSuffix || ''}/${arch}/${versionJsonPath}.json`,
|
||||
method: 'get'
|
||||
method: 'get',
|
||||
json: true
|
||||
})
|
||||
|
||||
if (existingPackageDetails && existingPackageDetails.destroy_url) {
|
||||
|
||||
Reference in New Issue
Block a user