Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
HarriPra committed Mar 19, 2024
1 parent e0c8588 commit 78f367b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/actions/repo-dispatch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ async function run() {//change function name
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('/');
// Initialize the Octokit client with the provided token for GitHub API calls
const client = github.getOctokit(token);

console.log("THIS IS THE OWNER " + owner)
Expand All @@ -33,15 +32,15 @@ async function run() {//change function name
client_payload: JSON.parse(clientPayload || {}),
});

// Log a success message to the console


console.log(`Dispatch event sent to ${targetRepo}: ${eventType}`);
} catch (error) {
// If an error occurs, log it and fail the action

core.setFailed(`Action failed with error: ${error}`);
}
}

// Execute the run function
run();


0 comments on commit 78f367b

Please sign in to comment.