-
Notifications
You must be signed in to change notification settings - Fork 2
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
ssh: Could not resolve hostname x-access-token: Name does not resolve #1
Comments
Hi, thanks for the issue report. I briefly worked on this GitHub Action, realized I didn't need it, then abandoned it. I meant to make this with a less-desirable name, for example with random letters and numbers in the name. Claiming As it is, I'm not personally interested in working on this GitHub Action anymore. |
Hi, thanks for your explanation. :) I use a different solution
|
Technical notes if anyone cares to maintain a similar "rebase" GitHub Action:Not basing this off of the Checking out code is very flexible, and git commands are easy and powerful from a bash scripting perspective. We can fetch strictly the exact branch and ref that we need to perform the rebase. The Perhaps a better fix would be to add a unique remote that doesn't conflict with For example, with the remote git remote add local_git_rebase_remote "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" |
Luckily you can use parameters on checkoutV2 to define the checkout depth as example or other things |
From here comes the
x-access-token
rebase-github-action/entrypoint.bash
Line 47 in 58c491c
But the origin gets already set by
actions/checkout@v2
I think if the project is based on
as a needed previous task, it can save code.
It's the standard task by github to checkout the current repo.
And since V2 the
fetch-depth: 0
is needed or it will be depth 1 by default, resulting in only a top commit breaking rebasing. (They decide this change because of performance reasons)Error log:
The text was updated successfully, but these errors were encountered: