Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunattam committed May 27, 2024
1 parent 0e16bd5 commit 42542e8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
23 changes: 12 additions & 11 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29230,26 +29230,27 @@ const github = __importStar(__nccwpck_require__(5438));
*/
async function run() {
try {
// const payload = JSON.stringify(github.context.payload, undefined, 2);
const rawResponse = await fetch("https://dispatch-worker.saikatmitra91.workers.dev", {
const buildUrl = core.getInput('build-url');
const response = await fetch("https://dispatch-worker.saikatmitra91.workers.dev", {
method: "POST",
body: JSON.stringify({
repo: {
owner: github.context.repo.owner,
name: github.context.repo.repo
},
event_type: "on-demand-test",
client_payload: { "unit": false, "integration": true }
to_forward: {
event_type: "on-demand-test",
client_payload: {
build_url: buildUrl,
"unit": false,
"integration": true
}
}
})
});
const content = await response.text();
// Debug logs are only output if the `ACTIONS_STEP_DEBUG` secret is true
// core.debug(`Waiting ${ms} milliseconds ...`)
// Log the current timestamp, wait, then log the new timestamp
// core.debug(new Date().toTimeString())
// await wait(parseInt(ms, 10))
// core.debug(new Date().toTimeString())
// Set outputs for other workflow steps to use
// core.setOutput('time', new Date().toTimeString())
core.debug(`Response from worker: ${content}`);
}
catch (error) {
// Fail the workflow run if an error occurs
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit 42542e8

Please sign in to comment.