You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Getting Error: There is no tracking information for the current branch. #199
Add input parsed as single string, running 1 git add command.
> Using 'Github Action <[email protected]>' as author.
> Using "Generated sass docs" as commit message.
> Running for a PR, the action will use 'feature/PLAT-263-generate-sass-doc' as ref.
Internal logs
Outputs
committed: false
pushed: false
tagged: false
Error: Error: There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> feature/PLAT-263-generate-sass-doc
Could anyone help and let me know what I should do?
i'm doing this on a pull request. when certain files are updated, sass doc files may change after re-generation. when there is a change, I want it auto committed as part of the pull request. not sure if I'm using this feature correctly.
btw I tried both changing cwd or add - both produce the same error
It's kind of hard to debug everything without seeing the repo.
Anyway, the logs say that git is complaining about the fact that package.json and package-lock.json have been edited but are not to be committed.
Try to manually run git checkout -- package.json package-lock.json before the action to see if it fixes the error.
We're seeing a similar issue in our private repo. The action worked as of 8 days ago, reverting to v7.2.0 did not fix things.
We have steps that change some files and use add-and-commit to commit the changes to the repo.
Now we're getting
Error: Error: error: Your local changes to the following files would be overwritten by checkout:
path/to/changed/file.ext
Please commit your changes or stash them before you switch branches.
Aborting
> Pulling from remote...
{ raw: '', remote: null, branches: [], tags: [] }
Error: Error: There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> PR_BRANCH_NAME
Outputs
committed: false
pushed: false
tagged: false
Error: Error: There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> PR_BRANCH_NAME
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@EndBug seems like my branch was effectively not fully rebased onto master, causing this error. I am parking this for now as it might have been our mistake after all.
Ok then, I'm removing the pinned label and wait for the author to tell whether they eventually solved the issue. Otherwise, the issue will be automatically marked as stale
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I see this when it is triggered by an on: pull_request event on a fork PR. Triggering it with on: push, so that it runs in the fork context, fixes it for me.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Activity
EndBug commentedon May 13, 2021
I need some further info from you:
dodozhang21 commentedon May 13, 2021
@EndBug
Here's my config file and its logs
GHA config
The generate sass just does this
Let me know if you need anything else.
EndBug commentedon May 13, 2021
The log file is not readable (tried with Windows Notepad and Notepad++)
dodozhang21 commentedon May 13, 2021
@EndBug
GHAlogs.txt
Logs
dodozhang21 commentedon May 13, 2021
i'm doing this on a pull request. when certain files are updated, sass doc files may change after re-generation. when there is a change, I want it auto committed as part of the pull request. not sure if I'm using this feature correctly.
btw I tried both changing
cwdoradd- both produce the same errorEndBug commentedon May 14, 2021
It's kind of hard to debug everything without seeing the repo.
Anyway, the logs say that git is complaining about the fact that
package.jsonandpackage-lock.jsonhave been edited but are not to be committed.Try to manually run
git checkout -- package.json package-lock.jsonbefore the action to see if it fixes the error.chicocvenancio commentedon May 14, 2021
We're seeing a similar issue in our private repo. The action worked as of 8 days ago, reverting to v7.2.0 did not fix things.
We have steps that change some files and use add-and-commit to commit the changes to the repo.
Now we're getting
dodozhang21 commentedon May 14, 2021
@EndBug I think the issue is if we make any other updates in the same pr besides what's committed by the GHA step, it's conflicting...
I will try not specifying anything for add maybe. just let it
git add .and seestale commentedon Jun 3, 2021
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
r-vdp commentedon Jun 23, 2021
@EndBug I'm running into the same issue, with the action runnning as part of a PR flow.
Any extra information that I can provide you?
Logs:
r-vdp commentedon Jul 5, 2021
@EndBug seems like my branch was effectively not fully rebased onto master, causing this error. I am parking this for now as it might have been our mistake after all.
brizzbuzz commentedon Jul 5, 2021
I'm getting this as well as part of an action flow that is triggered via a release
brizzbuzz commentedon Jul 5, 2021
Oh my solution was super obvious, github creates a new ref for releases so I just need to point back at main branch in my config for this step
EndBug commentedon Jul 5, 2021
Ok then, I'm removing the
pinnedlabel and wait for the author to tell whether they eventually solved the issue. Otherwise, the issue will be automatically marked as stalestale commentedon Jul 25, 2021
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
kd7lxl commentedon Jul 29, 2021
I see this when it is triggered by an
on: pull_requestevent on a fork PR. Triggering it withon: push, so that it runs in the fork context, fixes it for me.stale commentedon Aug 18, 2021
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.