Skip to content

Commit

Permalink
Resolve several issues in build status request
Browse files Browse the repository at this point in the history
  • Loading branch information
ElmarJ committed Jan 17, 2021
1 parent 5425eb9 commit 6d4afb4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ async function run(): Promise<void> {
var sleepDuration = 15;
await sleepFor(sleepDuration);

const buildStatusResponse = await axios.default.post(apiUrl + buildInfoEndpoint,{}, requestOptions)
let buildStatus = buildStatusResponse.data.buildStatus
const buildStatusResponse = await axios.default.get(apiUrl + buildInfoEndpoint, requestOptions)
buildStatus = buildStatusResponse.data.buildStatus
} else {
break;
}
Expand Down

0 comments on commit 6d4afb4

Please sign in to comment.