diff --git a/dist/index.js b/dist/index.js index 72c16629..56e1f8bb 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3565,11 +3565,6 @@ function run() { core.setFailed(`The GitHub API for comparing the base and head commits for this ${github_1.context.eventName} event returned ${response.status}, expected 200. ` + "Please submit an issue on this action's GitHub repo."); } - // Ensure that the head commit is ahead of the base commit. - if (response.data.status !== 'ahead') { - core.setFailed(`The head commit for this ${github_1.context.eventName} event is not ahead of the base commit. ` + - "Please submit an issue on this action's GitHub repo."); - } // Get the changed files from the response payload. const files = response.data.files; const all = [], added = [], modified = [], removed = [], renamed = [], addedModified = []; diff --git a/src/main.ts b/src/main.ts index 0f0fdd61..7c41c073 100644 --- a/src/main.ts +++ b/src/main.ts @@ -74,14 +74,6 @@ async function run(): Promise { ) } - // Ensure that the head commit is ahead of the base commit. - if (response.data.status !== 'ahead') { - core.setFailed( - `The head commit for this ${context.eventName} event is not ahead of the base commit. ` + - "Please submit an issue on this action's GitHub repo." - ) - } - // Get the changed files from the response payload. const files = response.data.files const all = [] as string[],