Skip to content
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

[Question] How can I commit to other repo the same user? #17

Closed
DmitrijOkeanij opened this issue Jan 26, 2020 · 7 comments
Closed

[Question] How can I commit to other repo the same user? #17

DmitrijOkeanij opened this issue Jan 26, 2020 · 7 comments
Labels
type: question Further information is requested

Comments

@DmitrijOkeanij
Copy link

DmitrijOkeanij commented Jan 26, 2020

I am trying to commit to my other repo, but do not understand how.
I got this error
image
And this script
image

@EndBug
Copy link
Owner

EndBug commented Jan 26, 2020

I think this comes from the fact that you're using the force option with a *.* matcher, and that makes git try to commit those files too (which it shouldn't since they're supposed to be local).
I guess you could just try using *.txt as the pattern.

@EndBug EndBug added the type: question Further information is requested label Jan 26, 2020
@DmitrijOkeanij
Copy link
Author

DmitrijOkeanij commented Jan 26, 2020

Now get this
image
And the second question how to upload all files.
start * as pattern is not working too.

@EndBug
Copy link
Owner

EndBug commented Jan 26, 2020

That is because the token you're using doesn't give the permissions to push to the second repository: the default GITHUB_TOKEN secret is meant to be used only with the repo the workflow is running in.
I think you need to create a custom GitHub token: you can find out how to do it here.

To add all the files you can either:

  • Use *.* as the pattern but without the force option
  • Use a pattern that excludes the .git folder: it may be something like ./!(.git)/*.*, but I'm not sure about that

Anyway, try searching that on Google/StackOverflow/..., I'm sure you'll find something that works for you: the action uses a standard find command, these are the lines with the commands if you need them.

@DmitrijOkeanij
Copy link
Author

DmitrijOkeanij commented Jan 27, 2020

I am not sure that this is possible to exclude something in linux find commend using pattern.
All answers like this and propose to use -not -path arguments witch is not possible using here.

find -name "*.js" -not -path "./directory/*"

May be to add code of ignoring .git folder to this repo, or to make some arguments to allow exclusions to find?

@EndBug
Copy link
Owner

EndBug commented Jan 28, 2020

I've created a new issue just for that, I will add it soon. For now, I'll close this one.

@EndBug EndBug closed this as completed Jan 28, 2020
EndBug added a commit that referenced this issue Feb 3, 2020
From issues #17 & #18
@EndBug
Copy link
Owner

EndBug commented Jul 10, 2020

@all-contributors please add @DmitrijOkeanij for ideas

@allcontributors
Copy link
Contributor

@EndBug

I've put up a pull request to add @DmitrijOkeanij! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants