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

Action fails - git configuration is incomplete #4

Closed
flxw opened this issue Nov 10, 2020 · 3 comments
Closed

Action fails - git configuration is incomplete #4

flxw opened this issue Nov 10, 2020 · 3 comments
Assignees

Comments

@flxw
Copy link

flxw commented Nov 10, 2020

Describe the bug
Hi, thanks for providing this useful action.
Unfortunately it fails for us, because somehow the git user is not correctly set inside the action itself.

We are running the action inside our organization, the repos are not public.
Would you have an idea how to fix this?

Here is the log from the action

" "update-prod.yml
" "***" "false" "workflows" "false" "false"

🗃 Git Config
    > Name          : Github Actions Workflow Sync Bot
    > Email         : githubactionbot+workflowsync@gmail.com

 
⚙️ Basic Config
-------------------------------------------------------
  * DRY_RUN               : false
  * Total Repositories    : 1
  * Total Workflow Files  : 1
--------------------------------------------------------
 
📓  celonis/workflow-sync-test
  ⚙️ Repository Config
    Slug          : celonis/workflow-sync-test
    Branch        : default
    Url           : ***github.com/celonis/workflow-sync-test.git
    Local Path    : /workflow-sync/celonis/workflow-sync-test/default
  
  ✔️ Repository Cloned
  
  update-test.yml
    update-test.yml => update-test.yml
  
  Git Commit & Push Log
  ---------------------------------------------------
  
  *** Please tell me who you are.
  
  Run
  
    git config --global user.email "you@example.com"
    git config --global user.name "Your Name"
  
  to set your account's default identity.
  Omit --global to set the identity only in this repository.
  
  fatal: unable to auto-detect email address (got 'root@6a55273d2ba1.(none)')

Additional context
This seems to happen in the ghconfig function.
I couldn't find the source of /gh-toolkit/shell.sh where the function for setting up git is most likely defined.

@varunsridharan
Copy link
Owner

@flxw sorry about that. can you please tell me what the version or the branch your are using for this action ?

it should be something like varunsridharan/action-github-workflow-sync@{branch/version}

@varunsridharan varunsridharan self-assigned this Nov 11, 2020
varunsridharan added a commit that referenced this issue Nov 11, 2020
@varunsridharan
Copy link
Owner

@flxw I think i was able to figure out the issue. was able to add a quick fix. please do check and let me know.

@flxw
Copy link
Author

flxw commented Nov 11, 2020

Thanks, that did the trick! I was using the version straight from the main branch

@flxw flxw closed this as completed Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants