mirror of
https://github.com/trympet/nextcloud-artifacts-action.git
synced 2025-07-27 11:23:17 +02:00
debug
This commit is contained in:
@@ -108,7 +108,8 @@ export class NextcloudArtifact {
|
||||
conclusion: 'failure',
|
||||
status: 'completed',
|
||||
output: {
|
||||
title: 'Nextcloud Artifacts'
|
||||
title: 'Nextcloud Artifacts',
|
||||
summary: 'Check failed.'
|
||||
},
|
||||
...github.context.repo
|
||||
})
|
||||
|
@@ -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