Skip to content

Commit

Permalink
add more console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
HarriPra committed Mar 18, 2024
1 parent 47866e5 commit f3207df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/actions/repo-dispatch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ async function run() {//change function name
const targetRepo = core.getInput('target-repository', { required: true });
const eventType = core.getInput('event-type', { required: true });
const clientPayload = core.getInput('clientPayload')

console.log("THIS IS THE TOKEN " + token)
console.log("THIS IS THE TARGET REPO " + targetRepo)

// Split the target repository string into owner and repository name
const [owner, repo] = targetRepo.split('/');
Expand All @@ -20,7 +23,7 @@ async function run() {//change function name
console.log("THIS IS THE EVENT TYPE " + eventType)
console.log("THIS IS THE CLIENT PAYLOAD " + clientPayload)

console.log("THIS IS THE CLIENT " + JSON.stringify(client.repos))
console.log("THIS IS THE CLIENT " + JSON.stringify(client))
// Send a repository dispatch event to the specified repository
await client.repos.createDispatchEvent({
owner, // Repository owner
Expand Down

0 comments on commit f3207df

Please sign in to comment.