Skip to content

Commit

Permalink
test1
Browse files Browse the repository at this point in the history
  • Loading branch information
alecrajeev committed Jul 22, 2024
1 parent 954d44b commit bbb9d61
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27472,11 +27472,11 @@ async function run() {
console.log(`Event Name: ${github.context.eventName}`); // Debugging: Log the event name

// Check if the event is a pull request event or pull request target event
if (github.context.eventName === 'pull_request' || github.context.eventName === 'pull_request_target') {
action(github.context, octokit);
} else {
console.log('This action only runs on pull request events.');
}
// if (github.context.eventName === 'pull_request' || github.context.eventName === 'pull_request_target') {
// action(github.context, octokit);
// } else {
// console.log('This action only runs on pull request events.');
// }
}

module.exports = {
Expand Down
10 changes: 5 additions & 5 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ async function run() {
console.log(`Event Name: ${github.context.eventName}`); // Debugging: Log the event name

// Check if the event is a pull request event or pull request target event
if (github.context.eventName === 'pull_request' || github.context.eventName === 'pull_request_target') {
action(github.context, octokit);
} else {
console.log('This action only runs on pull request events.');
}
// if (github.context.eventName === 'pull_request' || github.context.eventName === 'pull_request_target') {
// action(github.context, octokit);
// } else {
// console.log('This action only runs on pull request events.');
// }
}

module.exports = {
Expand Down

0 comments on commit bbb9d61

Please sign in to comment.