Skip to content

Commit

Permalink
testing usage
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaloaune committed Jan 27, 2024
1 parent 0f5fa13 commit 65d1680
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions dist/index.js

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

8 changes: 6 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@ async function run() {
content: bot_message
}

const restRes = await http_client.postJson(tribe_url, req_params)
const httpClient = new http_client.HttpClient('sphinx-bot', [], {
allowRetries: true,
maxRetries: 3
})
const response = await httpClient.postJson(tribe_url, req_params)

// Set outputs for other workflow steps to use
core.setOutput('response', restRes.result.json)
core.setOutput('response', response.result.json)
} catch (error) {
// Fail the workflow run if an error occurs
core.setFailed(error.message)
Expand Down

0 comments on commit 65d1680

Please sign in to comment.