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
Add more error logs when failing (with stack trace) (#64)
* more error log
* more logs
* Remove useless logs
* Try ending the full error to GH
* nope
* add more log
* link to the settings
* Indication to follow the stack
Copy file name to clipboardExpand all lines: index.js
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,19 @@ async function run() {
5
5
try{
6
6
awaitaction.action();
7
7
}catch(error){
8
-
core.setFailed(error.message);
8
+
console.error(error);
9
+
if(error.message.includes("Resource not accessible by integration")){
10
+
console.info(
11
+
`⚠️💡👉 This error might be due to the Github repository settings: make sure that the checkbox "Read and write permissions" is checked here under "Workflows":
12
+
https://github.com/mobsuccess-devops/${
13
+
process.env.GITHUB_REPOSITORY.split("/")[1]
14
+
}/settings/actions`
15
+
);
16
+
}
17
+
core.setFailed(
18
+
error.message+
19
+
" (please check the logs for the full error and stack trace)"
0 commit comments