-
-
Notifications
You must be signed in to change notification settings - Fork 176
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
[BUG] Auto-Merge not working properly on Change-Detection for PRs #713
Comments
Thanks for reporting this issue, don't forget to star this project if you haven't already to help us reach a wider audience. |
@fdc-viktor-luft Can you also include a complete log output with debug logging enabled? This can be done by:
AND
|
I'll see if the log doesn't contain any sensitive data. In that case I'd be happy to share it. I'll try to find some time to do that 👍 |
We are experiencing a quite similar error right now. Here's the relevant log output of this step: changed-files
Resolving repository path: /opt/actions-runner/_work/owner/repository/.
Retrieving changes between bc70d097fcbdeb1b34a37ef5d21256bb4fd3b93f (master) → dc0d09c45c364d45d3381461040aa46ee1ea6b60 (dependabot/terraform/subfolder/hashicorp/aws-4.37.0)
fatal: bc70d097fcbdeb1b34a37ef5d21256bb4fd3b93f...dc0d09c45c364d45d3381461040aa46ee1ea6b60: no merge base
fatal: bc70d097fcbdeb1b34a37ef5d21256bb4fd3b93f...dc0d09c45c364d45d3381461040aa46ee1ea6b60: no merge base
fatal: bc70d097fcbdeb1b34a37ef5d21256bb4fd3b93f...dc0d09c45c364d45d3381461040aa46ee1ea6b60: no merge base
fatal: bc70d097fcbdeb1b34a37ef5d21256bb4fd3b93f...dc0d09c45c364d45d3381461040aa46ee1ea6b60: no merge base
fatal: bc70d097fcbdeb1b34a37ef5d21256bb4fd3b93f...dc0d09c45c364d45d3381461040aa46ee1ea6b60: no merge base
fatal: bc70d097fcbdeb1b34a37ef5d21256bb4fd3b93f...dc0d09c45c364d45d3381461040aa46ee1ea6b60: no merge base
fatal: bc70d097fcbdeb1b34a37ef5d21256bb4fd3b93f...dc0d09c45c364d45d3381461040aa46ee1ea6b60: no merge base
fatal: bc70d097fcbdeb1b34a37ef5d21256bb4fd3b93f...dc0d09c45c364d45d3381461040aa46ee1ea6b60: no merge base
fatal: bc70d097fcbdeb1b34a37ef5d21256bb4fd3b93f...dc0d09c45c364d45d3381461040aa46ee1ea6b60: no merge base
fatal: bc70d097fcbdeb1b34a37ef5d21256bb4fd3b93f...dc0d09c45c364d45d3381461040aa46ee1ea6b60: no merge base
fatal: bc70d097fcbdeb1b34a37ef5d21256bb4fd3b93f...dc0d09c45c364d45d3381461040aa46ee1ea6b60: no merge base
fatal: bc70d097fcbdeb1b34a37ef5d21256bb4fd3b93f...dc0d09c45c364d45d3381461040aa46ee1ea6b60: no merge base
fatal: bc70d097fcbdeb1b34a37ef5d21256bb4fd3b93f...dc0d09c45c364d45d3381461040aa46ee1ea6b60: no merge base
fatal: bc70d097fcbdeb1b34a37ef5d21256bb4fd3b93f...dc0d09c45c364d45d3381461040aa46ee1ea6b60: no merge base I'd expect the check to fail, instead |
@hhelmken @fdc-viktor-luft @MichaelBrandt4994 This issue has been resolved in the latest release. |
@jackton1 Thank you a lot. Will give a try soon. |
@jackton1 I tried it and it doesn't work properly. We will provide you with more information and re-create an issue with the updated logs. With a PR containing only a single commit we see this error:
|
@jackton1 did you consider using github api to get the changed files in case of Pull Requests ? Here is a dumb example of an action implementing a subset of the inputs/outputs of your action, in a robust way (only for PRs though) https://github.com/ericLemanissier/conan-center-index/blob/patch-5/.github/actions/pr_changed_files/action.yml |
@ericLemanissier @fdc-viktor-luft I suggest a simple fix using the documentation. Change - uses: actions/checkout@v3 To - uses: actions/checkout@v3
with:
fetch-depth: 0 Also, can you confirm that you are using |
This is the only secret to finding a solution to the issue as excerpts from logs are not helpful a full picture of how the problem occurred would be more valuable or optionally replicating the problem in another repository that isn't private. |
Isn't |
Is there an existing issue for this?
Does this issue exist in the latest version?
Describe the bug?
Instead of failing, I get as output for the "all_modified_files" this:
Expecting a list of space separated file names, this was causing a severe issue skipping several checks in our CI.
To Reproduce
I'm using the action in a very basic way. Example workflow:
What OS are you seeing the problem on?
ubuntu-latest or ubuntu-20.04
Expected behavior?
In version
v29.0.7
everything still worked fine.Relevant log output
No response
Anything else?
I'm not sure if the above issue was caused by some Auto-Merge as I had to fast react and rollback the change, but...
I also tried
v32.1.2
. In that version is already another issue. Whenever the Auto-Merge runs the "all_modified_files" contains also all touched files from Auto-Merge instead of only files touched in the PR.Code of Conduct
The text was updated successfully, but these errors were encountered: