Skip to content

Commit

Permalink
adjust dispatch event
Browse files Browse the repository at this point in the history
  • Loading branch information
HarriPra committed Mar 18, 2024
1 parent e4960ad commit 2212cc2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/actions/repo-dispatch/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Import necessary libraries from the GitHub Actions Toolkit
const core = require('@actions/core');
const github = require('@actions/github');

Expand All @@ -25,7 +24,7 @@ async function run() {//change function name

console.log("THIS IS THE CLIENT " + JSON.stringify(client))
// Send a repository dispatch event to the specified repository
await client.repos.createDispatchEvent({
await client.rest.repos.createDispatchEvent({
owner, // Repository owner
repo, // Repository name
event_type: eventType, // Custom event type to trigger the workflow
Expand Down

0 comments on commit 2212cc2

Please sign in to comment.