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

Issue with commit_options - error: unknown switch ` ' #61

Closed
fungos opened this issue Apr 21, 2020 · 9 comments · Fixed by #62
Closed

Issue with commit_options - error: unknown switch ` ' #61

fungos opened this issue Apr 21, 2020 · 9 comments · Fixed by #62
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@fungos
Copy link

fungos commented Apr 21, 2020

Version of the Action
v4.1.3

Describe the bug
Error during task execution: error: unknown option --no-verify --signoff --verbose` as you can see (a workaround I've tried) here:
https://github.com/crossuo/shards/runs/606923804?check_suite_focus=true#step:4:17
or even this as suggested in the readme:
https://github.com/crossuo/shards/runs/606911285?check_suite_focus=true#step:4:17

To Reproduce
Copy-paste the first sample in readme with almost no modification

@fungos fungos changed the title Issue with commit_options Issue with commit_options Apr 21, 2020
@stefanzweifel
Copy link
Owner

Thanks for reporting. I will look into this shortly!

@stefanzweifel
Copy link
Owner

Hm, first I thought the changes made in #59 broke the commit_options-input, but current master and current released version still fails.

Maybe GitHub changes something behind the scenes 🤔
Have to do more research.

@stefanzweifel
Copy link
Owner

Can confirm that this seems to be an issue on GitHubs side. Even older versions like v3.0.0 don't work anymore.

https://github.com/stefanzweifel/git-auto-commit-action-demo-app/runs/608305392#step:6:45

@fungos
Copy link
Author

fungos commented Apr 22, 2020

Yes, it is still broken. https://github.com/crossuo/shards/runs/608296418?check_suite_focus=true#step:4:17
Any way to enable actions debugging/echoing all commands?

@stefanzweifel
Copy link
Owner

@fungos You have to add a new secret to the repo with the name ACTIONS_RUNNER_DEBUG and value true. Actions will then output more debug mesages.

https://help.github.com/en/actions/configuring-and-managing-workflows/managing-a-workflow-run#enabling-debug-logging


I just looked at this during lunch break. Will take a closer look later today.

@stefanzweifel
Copy link
Owner

Actually opened a thread in the community forums for this problem: https://github.community/t5/GitHub-Actions/Action-suddenly-can-t-pass-git-options-anymore/m-p/55111#M9435

@stefanzweifel stefanzweifel changed the title Issue with commit_options Issue with commit_options - error: unknown switch ` ' Apr 22, 2020
@stefanzweifel stefanzweifel added the help wanted Extra attention is needed label Apr 22, 2020
@stefanzweifel
Copy link
Owner

@fungos

I could find a solution to the problem. See #64.
I've already tested this in a test project. If you want to test it in your project too, you can use the following uses statement in your workflow:

stefanzweifel/git-auto-commit-action@fix-61

I will tag a new version tomorrow.

@fungos
Copy link
Author

fungos commented Apr 22, 2020

Great! It worked now. https://github.com/crossuo/shards/runs/610317954?check_suite_focus=true#step:4:19
Thanks a lot for helping out.

@stefanzweifel
Copy link
Owner

The issue has been fixed in v4.1.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants