Skip to content

Crowdin Action does not create PR and fails with error: jq: error (at <stdin>:4): Cannot index string with string "head" #67

@sumitahluwalia

Description

@sumitahluwalia

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

  1. I previously had github integration enabled for the same project. I just tried to switch to using the action.
  2. I have the action added here: https://github.com/sumitahluwalia/crowdin/blob/main/.github/workflows/main.yml
  3. You can see my action executed here: https://github.com/sumitahluwalia/crowdin/runs/2417311249
  4. 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"

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions