Skip to content

Commit

Permalink
add console.logs for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
HarriPra committed Mar 18, 2024
1 parent 31299b0 commit 4acaf29
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/actions/repo-dispatch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
const core = require('@actions/core');
const github = require('@actions/github');

// The main function that wraps the action logic
async function run() {//change function name
try {
// Get inputs defined in action.yml using the core library
Expand All @@ -16,6 +15,10 @@ async function run() {//change function name
// Initialize the Octokit client with the provided token for GitHub API calls
const client = github.getOctokit(token);

console.log("THIS IS THE OWNER " + owner)
console.log("THIS IS THE REPO " + repo)
console.log("THIS IS THE EVENT TYPE " + eventType)

// Send a repository dispatch event to the specified repository
await client.repos.createDispatchEvent({
owner, // Repository owner
Expand All @@ -36,5 +39,4 @@ async function run() {//change function name
// Execute the run function
run();

//make my own workflow
//

0 comments on commit 4acaf29

Please sign in to comment.