Skip to content

Commit

Permalink
v0.1.3-patch
Browse files Browse the repository at this point in the history
  • Loading branch information
vn7n24fzkq committed Sep 5, 2020
1 parent c4ae456 commit 174e263
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
14 changes: 13 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17963,7 +17963,19 @@ const main = async () => {
}
if (isInGithubAction) {
core.info(`Commit file...`);
await commitFile();
let retry = 0;
let maxRetry = 3;
while (retry < maxRetry) {
retry += 1;
try {
await commitFile();
} catch (error) {
if (retry == maxRetry) {
throw error;
}
core.warn(`Commit failed. Retry...`);
}
}
}
} catch (error) {
core.error(error);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "github-profile-summary-cards",
"version": "0.1.2",
"version": "0.1.3",
"description": "Generate github profile summary cards",
"main": "src/app.js",
"scripts": {
Expand Down
14 changes: 13 additions & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,19 @@ const main = async () => {
}
if (isInGithubAction) {
core.info(`Commit file...`);
await commitFile();
let retry = 0;
let maxRetry = 3;
while (retry < maxRetry) {
retry += 1;
try {
await commitFile();
} catch (error) {
if (retry == maxRetry) {
throw error;
}
core.warn(`Commit failed. Retry...`);
}
}
}
} catch (error) {
core.error(error);
Expand Down

0 comments on commit 174e263

Please sign in to comment.