Skip to content

Commit ee61b65

Browse files
authored
Remove buggy check
It’s causing false alert when there’s force push: ``` Error: The head commit for this pull_request event is not ahead of the base commit. Please submit an issue on this action's GitHub repo. ``` See jitterbit@54f3703
1 parent a5a0f56 commit ee61b65

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/main.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,6 @@ async function run(): Promise<void> {
8484
)
8585
}
8686

87-
// Ensure that the head commit is ahead of the base commit.
88-
if (response.data.status !== 'ahead') {
89-
core.setFailed(
90-
`The head commit for this ${context.eventName} event is not ahead of the base commit. ` +
91-
"Please submit an issue on this action's GitHub repo."
92-
)
93-
}
94-
9587
// Get the changed files from the response payload.
9688
const files = response.data.files
9789
const all = [] as string[],

0 commit comments

Comments
 (0)