github-action: Crowdin Action does not create PR and fails with error: jq: error (at :4): Cannot index string with string "head"
Describe the bug Pull request does not get created when the crowdin executed is executed. The script fails with error:
jq: error (at <stdin>:4): Cannot index string with string "head"
To Reproduce
- I previously had github integration enabled for the same project. I just tried to switch to using the action.
- I have the action added here: https://github.com/sumitahluwalia/crowdin/blob/main/.github/workflows/main.yml
- You can see my action executed here: https://github.com/sumitahluwalia/crowdin/runs/2417311249
- crowdin.yml file: https://github.com/sumitahluwalia/crowdin/blob/main/crowdin.yml
Expected behavior The PR request should be created.
Additional context
STARTING CROWDIN ACTION
UPLOAD SOURCES
✔️ Fetching project info
✔️ File 'FileToTranslate.json'
UPLOAD TRANSLATIONS
✔️ Fetching project info
✔️ Translation file 'Translations/fr.json' has been uploaded
✔️ Translation file 'Translations/en.json' has been uploaded
DOWNLOAD TRANSLATIONS
✔️ Fetching project info
✔️ Building ZIP archive with the latest translations
✔️ Building translation (100%)
✔️ Downloading translation
✔️ Extracted: 'Translations/en.json'
✔️ Extracted: 'Translations/fr.json'
CONFIGURATION GIT USER
Already on 'main'
M Translations/en.json
M Translations/fr.json
Your branch is up to date with 'origin/main'.
Switched to a new branch 'l10n_crowdin_action'
PUSH TO BRANCH l10n_crowdin_action
[l10n_crowdin_action d62d3e9] New Crowdin translations by Github Action
2 files changed, 12 insertions(+), 20 deletions(-)
To https://github.com/sumitahluwalia/crowdin.git
+ 6355e60...d62d3e9 l10n_crowdin_action -> l10n_crowdin_action (forced update)
CHECK IF ISSET SAME PULL REQUEST
jq: error (at <stdin>:4): Cannot index string with string "head"
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (1 by maintainers)
@subbuswaroop try this pull request https://github.com/subbuswaroop/crowdin-sync-repo/pull/5. For this case, you do not need to delete branch.
Thanks a lot for the quick response! Please let me know incase I can use any work around as well for this.