Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to retrieve changed files on a "push" event ("pull_request" works though) #103

Open
irasnyd opened this issue Jul 9, 2020 · 1 comment

Comments

@irasnyd
Copy link

irasnyd commented Jul 9, 2020

Describe the bug

I have a workflow which uses this action (version 1.2.3, since version 1.2.4 doesn't work for me, see Issue #102).

My workflow triggers on both push and pull_request. However, the push triggered workflow run always fails, while the pull_request triggered workflow run works correctly. It runs the same exact workflow for both triggers, however the file-changes-action step fails when running the push trigger. I have attached the logs.

Workflow
See attached syntaxcheck.zip

Expected behavior

The file-changes-action should work for push triggered workflows.

Additional context

Here are the logs from a "push + pull_request" triggered run.

Thank you for this project! When it works, it works great! I really appreciate you making it available for us to use.

@thoellrich
Copy link

@irasnyd - I see the exact same error here for push when a branch is pushed the first time. In that case there is no previous sha to compare to and it defaults to 0000...., which causes the error we are seeing.

prcr pushed a commit to codacy/docs that referenced this issue Oct 6, 2020
The newest version 1.2.4 has issues running for the first commit in a
new pull request, see trilom/file-changes-action#103
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants