-
Notifications
You must be signed in to change notification settings - Fork 77
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
Does not work when there is single commit on push
target branch (e.g default main
branch)
#84
Comments
main
branchpush
target branch (e.g default main
branch)
Thank you for reporting this. The |
It makes sense when there are branch protection rules on Example scenario is: If
|
Any updates? |
I am also running into this issue. Any update on getting it fixed? |
Not related with the described scenario above, but I got the same error when running this action without specifying the fetch-depth 0 parameter in the checkout action:
|
Thank you @duki994 for the PR and sorry for waiting so long |
Description
nx-set-shas
is not working in scenarios where there is single commit onmain
(or any other) branch.It's not really connected to
main
branch itself, but to any combination ofgit rev-parse ${remoteName}/${branchName}~1
where branch${remoteName}/${branchName}
has single commitSteps to reproduce (one way)
main
(or any other name) branch with single commit (e.gInit with README.md
)development
) with several commits.nx-set-shas
via GH actions to run anyaffected
command on push onmain
branch (e.g after PR merge)Logs
Additional context
nx-set-shas@v3
git rev-parse ${remoteName}/${branchName}~1
doesn't exist but actual${remoteName}/${branchName}
existsThe text was updated successfully, but these errors were encountered: