diff --git a/.github/actions/repo-dispatch/index.js b/.github/actions/repo-dispatch/index.js index 4ecddacf0..45521d170 100644 --- a/.github/actions/repo-dispatch/index.js +++ b/.github/actions/repo-dispatch/index.js @@ -1,4 +1,3 @@ -// Import necessary libraries from the GitHub Actions Toolkit const core = require('@actions/core'); const github = require('@actions/github'); @@ -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