Skip to content

Commit

Permalink
Merge pull request #60 from useblacksmith/stickykey-commit
Browse files Browse the repository at this point in the history
src: send stickydisk key with commit
  • Loading branch information
adityamaru authored Dec 4, 2024
2 parents e00a389 + 72c7e93 commit 3d09910
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ async function reportBuildCompleted(exportRes?: ExportRecordResponse, blacksmith
formData.append('shouldCommit', 'true');
formData.append('vmID', process.env.VM_ID || '');
formData.append('exposeID', exposeId || '');
formData.append('stickyDiskKey', process.env.GITHUB_REPO_NAME || '');
const retryCondition = (error: AxiosError) => {
return error.response?.status ? error.response.status > 500 : false;
};
Expand Down Expand Up @@ -104,6 +105,7 @@ async function reportBuildFailed(dockerBuildId: string | null, dockerBuildDurati
formData.append('shouldCommit', 'false');
formData.append('vmID', process.env.VM_ID || '');
formData.append('exposeID', exposeId || '');
formData.append('stickyDiskKey', process.env.GITHUB_REPO_NAME || '');
const retryCondition = (error: AxiosError) => {
return error.response?.status ? error.response.status > 500 : false;
};
Expand Down

0 comments on commit 3d09910

Please sign in to comment.