-
Hi, I am trying to migrate from in-house Jenkins to GitHub actions for our CI-CD pipelines. The error I am getting is from the below:
The error I get is: /home/runner/work/the-first/the-first/task-definition.json: Unexpected token � in JSON at position 0 Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hi @tsposato, welcome to the GitHub Support Community! I’m wondering if this is an issue with the It may be worth opening an issue for this inside the repository for this action. They’ll likely have a better idea of what’s going wrong and whether it is something wrong with the action itself or something wrong with your workflow. github.comaws-actions/amazon-ecs-render-task-definitionInserts a container image URI into an Amazon ECS task definition JSON file. |
Beta Was this translation helpful? Give feedback.
-
Hi @thomasshaped, thanks! |
Beta Was this translation helpful? Give feedback.
-
Ok, the problem was the encoding of the file was not ‘UTF-8’. Once I changed the encoding of the file I was able to register a Task Definition successfully with the aws cli and with the github action Thanks. |
Beta Was this translation helpful? Give feedback.
-
Excellent, tsposato, this fixed my error as well. Thank you. |
Beta Was this translation helpful? Give feedback.
Ok, the problem was the encoding of the file was not ‘UTF-8’. Once I changed the encoding of the file I was able to register a Task Definition successfully with the aws cli and with the github action
aws-actions/amazon-ecs-render-task-definition
.Thanks.