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

Docker Action - Exit Code 2 #153

Closed
vivekjoshy opened this issue Dec 7, 2022 · 11 comments · Fixed by #154
Closed

Docker Action - Exit Code 2 #153

vivekjoshy opened this issue Dec 7, 2022 · 11 comments · Fixed by #154
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@vivekjoshy
Copy link

Describe the bug
My crowdin action is exiting with code 2 because of docker.

##[debug]Docker Action run completed with exit code 2

To Reproduce
Steps to reproduce the behavior:

  1. Crowdin Github Action Configuration
  2. crowdin.yml file content
  3. OS: Ubuntu

Expected behavior
Docker exits with code 0

@vivekjoshy vivekjoshy added the bug Something isn't working label Dec 7, 2022
@andrii-bodnar
Copy link
Member

andrii-bodnar commented Dec 7, 2022

Probably, it's somehow related to the GPG signing since the process suddenly ends up at this stage

Also, please try removing the pull_request_reviewers: 'crowdin-reviewer' option or specify a valid GitHub username and make sure you have the translations label in your repo

@vivekjoshy
Copy link
Author

I've changed the pull_request_reviewers to an existing username. No change.

@andrii-bodnar
Copy link
Member

andrii-bodnar commented Dec 7, 2022

@daegontaven ok, just for test purposes, could you please try removing the GPG configuration?

gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}

@vivekjoshy
Copy link
Author

@andrii-bodnar
Copy link
Member

@daegontaven as I can see, now the execution reached the committing stage but there was nothing to commit. See the execution log:

Your branch is up to date with 'origin/main'.

@vivekjoshy
Copy link
Author

vivekjoshy commented Dec 7, 2022

But why is the build failing. Shouldn't it pass if there's nothing to commit? I assume this means GPG is the issue, but still doesn't explain the exit code of 1. Is it supposed to error?

@andrii-bodnar
Copy link
Member

Probably, it's unexpected for the GitHub API

@vivekjoshy
Copy link
Author

As in it's a bug or as in it's supposed to error when there is nothing to commit?

@andrii-bodnar
Copy link
Member

@daegontaven the last possible reason - try to remove the pull_request_body multiline value

sorry, we need your help with the debug 😬

@vivekjoshy
Copy link
Author

@andrii-bodnar Same exit code.

https://github.com/OpenDebates/openskill.py/actions/runs/3640184556/jobs/6144553376#step:7:826

@andrii-bodnar andrii-bodnar added the help wanted Extra attention is needed label Dec 7, 2022
@andrii-bodnar
Copy link
Member

andrii-bodnar commented Dec 8, 2022

Hi @daegontaven!

Found the cause of the failing action - it was related to git-lfs. Created a PR - #154 (It'll be released soon)

For now, you can revert the pull_request_body back, and also you can try the fix by referencing the exact repo branch:

uses: crowdin/[email protected]

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