Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down
8 changes: 0 additions & 8 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,6 @@ async function run(): Promise<void> {
)
}

// 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[],
Expand Down