mirror of
https://github.com/trympet/nextcloud-artifacts-action.git
synced 2025-07-13 05:35:38 +02:00
debug
This commit is contained in:
@ -193,8 +193,10 @@ export class NextcloudClient {
|
||||
})
|
||||
|
||||
const result = await res.text()
|
||||
core.debug(`Share response: ${result}`)
|
||||
const re = /<url>(?<share_url>.*)<\/url>/
|
||||
const match = re.exec(result)
|
||||
core.debug(`Match groups:\n${JSON.stringify(match?.groups)}`)
|
||||
const sharableUrl = (match?.groups || {})['share_url']
|
||||
if (!sharableUrl) {
|
||||
throw new Error('Failed to parse sharable URL.')
|
||||
|
Reference in New Issue
Block a user