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

Error: error: Your local changes to the following files would be overwritten by merge: #187

Closed
linonetwo opened this issue Apr 28, 2021 · 2 comments
Labels
type: question Further information is requested

Comments

@linonetwo
Copy link

Describe the bug

Run EndBug/[email protected]

  

  
    Wed, 28 Apr 2021 07:09:22 GMT
    Running in /home/runner/work/CDDA-Kenan-Modpack-Chinese/CDDA-Kenan-Modpack-Chinese

  

  
    Wed, 28 Apr 2021 07:09:22 GMT
    Add input parsed as single string, running 1 git add command.

  

  
    Wed, 28 Apr 2021 07:09:22 GMT
    > Using 'linonetwo <[email protected]>' as author.

  

  
    Wed, 28 Apr 2021 07:09:22 GMT
    > Using "feat: 自动拉取Paratranz最新内容并发布" as commit message.

  

  
    Wed, 28 Apr 2021 07:09:22 GMT
    Internal logs

  

  
    
  
    Wed, 28 Apr 2021 07:09:43 GMT
    Outputs

  

  
    Wed, 28 Apr 2021 07:09:43 GMT
    Error: Error: error: Your local changes to the following files would be overwritten by merge:

  

  
    	中文翻译/Arcana.json

  

  
    	中文翻译/Fallout_CDDA.json

  

  
    	中文翻译/secronom.json

  

  
    	中文翻译/secronom_lore_expansion.json

  
    Please commit your changes or stash them before you merge.
    Aborting

Workflow used

https://github.com/linonetwo/CDDA-Kenan-Modpack-Chinese/blob/28ae4db5b2021fbd9c0fc627530c8834828f41e7/.github/workflows/release-mod.yml#L63-L66

Expected behavior

It add and commit and push witout error

Logs

https://github.com/linonetwo/CDDA-Kenan-Modpack-Chinese/runs/2455149076?check_suite_focus=true

@linonetwo linonetwo added the status: pending More info is needed before deciding what to do label Apr 28, 2021
@EndBug
Copy link
Owner

EndBug commented Apr 28, 2021

I think it's better if you disable pulling for the actions, you can use this step:

- name: Add & Commit
   uses: EndBug/[email protected]
   with:
     message: 'feat: 自动拉取Paratranz最新内容并发布'
     pull_strategy: NO-PULL

Let me know if that solves the issue for you.

@linonetwo
Copy link
Author

It works, thank you!

@EndBug EndBug added type: question Further information is requested and removed status: pending More info is needed before deciding what to do labels May 2, 2021
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