-
-
Notifications
You must be signed in to change notification settings - Fork 434
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
create-pull-request fails with uncommitted changes that aren't in add-paths #1095
Comments
Hi @agrare Currently there is a minor limitation to using I mentioned this in the docs here: https://github.com/peter-evans/create-pull-request#add-specific-paths
However, I understand that this not what you would expect to happen, and I'm going to see if I can fix it. I think I've identified a way to handle this, so I just need a little time to test it. In the meantime, using - run: git clean -f vendor |
Hi @agrare I think I've fixed this issue. If you would be willing to test it, that would be really helpful. I'm releasing it as - name: Create Pull Request
uses: peter-evans/create-pull-request@v4 There are some notes about the |
@peter-evans your change worked perfectly, I removed
|
Great. Thank you for testing it! |
Released as Thank you for raising this issue! It provoked me to look more closely at the logic and make this improvement. |
Thanks for the quick fix @peter-evans ! |
Subject of the issue
While testing that running the workflow with no changes does not create a pull request I noticed a failure caused by uncommitted changes which were not in the
add-paths
list.I have only a single file in the
add-paths
list (db/fixtures/aws_instance_types.yml
)ruby/setup-ruby
will install gems by default into thevendor/bundle
directory in the root of the repository.While we should add
vendor/bundle
to our.gitignore
I think this could be a more general issue, I'd expect any files outside of the scope of what is inadd-paths
to be ignored.Steps to reproduce
Create a workflow which modifies a file outside of add-paths
Example failure: https://github.com/agrare/manageiq-providers-amazon/runs/5586172800
Example workflow: https://github.com/agrare/manageiq-providers-amazon/blob/run_aws_extract_instance_types_weekly/.github/workflows/instance_types.yaml
The text was updated successfully, but these errors were encountered: