Skip to content

Commit

Permalink
Fixed issues
Browse files Browse the repository at this point in the history
  • Loading branch information
randilfernando committed Apr 24, 2020
1 parent a57a0db commit 2ea3d39
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
11 changes: 5 additions & 6 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1345,13 +1345,12 @@ async function sendDispatchEvent(repository, event_type, client_payload, token)

async function run() {
try {
const repository = core.getInput('repository') | process.env.REPOSITORY;
const eventType = core.getInput('event-type') | process.env.EVENT_TYPE;
const clientPayload = core.getInput('client-payload') | process.env.CLIENT_PAYLOAD;
const token = core.getInput('token') | process.env.TOKEN;
const repository = core.getInput('repository');
const eventType = core.getInput('event-type');
const clientPayload = core.getInput('client-payload');
const token = core.getInput('token');

const newMessageId = await sendDispatchEvent(repository, eventType, clientPayload, token);
core.setOutput('message-id', newMessageId);
await sendDispatchEvent(repository, eventType, clientPayload, token);
} catch (error) {
core.setFailed(error.message);
}
Expand Down
11 changes: 5 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@ async function sendDispatchEvent(repository, event_type, client_payload, token)

async function run() {
try {
const repository = core.getInput('repository') | process.env.REPOSITORY;
const eventType = core.getInput('event-type') | process.env.EVENT_TYPE;
const clientPayload = core.getInput('client-payload') | process.env.CLIENT_PAYLOAD;
const token = core.getInput('token') | process.env.TOKEN;
const repository = core.getInput('repository');
const eventType = core.getInput('event-type');
const clientPayload = core.getInput('client-payload');
const token = core.getInput('token');

const newMessageId = await sendDispatchEvent(repository, eventType, clientPayload, token);
core.setOutput('message-id', newMessageId);
await sendDispatchEvent(repository, eventType, clientPayload, token);
} catch (error) {
core.setFailed(error.message);
}
Expand Down

0 comments on commit 2ea3d39

Please sign in to comment.