mirror of
https://github.com/actions/toolkit.git
synced 2026-08-18 00:00:19 +02:00
add back param parsing function
Signed-off-by: Meredith Lancaster <[email protected]>
This commit is contained in:
@@ -70,3 +70,13 @@ export async function createStorageRecord(options: StorageRecordOptions): Promis
|
|||||||
throw new Error(`Failed to persist storage record: ${message}`)
|
throw new Error(`Failed to persist storage record: ${message}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const buildRequestParams = (options: StorageRecordOptions) => {
|
||||||
|
const { registryUrl, artifactUrl, ...rest } = options.packageRegistryOptions
|
||||||
|
return {
|
||||||
|
...options.artifactOptions,
|
||||||
|
registry_url: registryUrl,
|
||||||
|
artifact_url: artifactUrl,
|
||||||
|
...rest,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user