You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Get Pages site failed. Please verify that the repository has Pages enabled and configured to build using GitHub Actions, or consider exploring the `enablement` parameter for this action.',
47
-
error
47
+
`Get Pages site failed. Please verify that the repository has Pages enabled and configured to build using GitHub Actions, or consider exploring the \`enablement\` parameter for this action. Error: ${error.message}`,
48
+
convertErrorToAnnotationProperties(error)
48
49
)
49
50
throwerror
50
51
}
51
-
core.warning('Get Pages site failed',error)
52
+
core.warning(`Get Pages site failed. Error: ${error.message}`,convertErrorToAnnotationProperties(error))
52
53
}
53
54
54
55
if(!pageObject&&enablement){
55
56
// Create a new Pages site if one doesn't exist
56
57
try{
57
58
pageObject=awaitenablePagesSite({ githubToken })
58
59
}catch(error){
59
-
core.error('Create Pages site failed',error)
60
+
core.error(`Create Pages site failed. Error: ${error.message}`,convertErrorToAnnotationProperties(error))
`Unsupported configuration file extension. Currently supported extensions: ${SUPPORTED_FILE_EXTENSIONS.map(
90
91
ext=>JSON.stringify(ext)
91
-
).join(', ')}`,
92
-
error
92
+
).join(', ')}. Error: ${error.message}`,
93
+
convertErrorToAnnotationProperties(error)
93
94
)
94
95
}else{
95
96
core.warning(
96
-
`We were unable to determine how to inject the site metadata into your config. Generated URLs may be incorrect. The base URL for this site should be ${siteUrl}. Please ensure your framework is configured to generate relative links appropriately.`,
97
-
error
97
+
`We were unable to determine how to inject the site metadata into your config. Generated URLs may be incorrect. The base URL for this site should be ${siteUrl}. Please ensure your framework is configured to generate relative links appropriately. Error: ${error.message}`,
0 commit comments