Open Mistobaan opened 2 years ago
@Mistobaan Thank you for raising this issue with us, we will get back to you once we have answer to this issue.
Any word on this?
Any update on this ?
Ran into this issue today as well and unfortunately it does not appear this will be something that gets changed.
Right now you either give it an absolute path OR it puts it in the directory attached to the GITHUB_WORKSPACE
environment variable.
In case workarounds will help someone in the future you can either:
- name: Download task definition
run: |
aws ecs describe-task-definition --task-definition ${{ env.ECS_TASK_DEFINITION }} --query taskDefinition \
> ${{ github.workspace }}/task-definition.json
- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: ...
image: ...
/tmp/task-definition.json
(YMMV with what OS you are using)- name: Download task definition
run: |
aws ecs describe-task-definition --task-definition ${{ env.ECS_TASK_DEFINITION }} --query taskDefinition \
> /tmp/task-definition.json
- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: /tmp/task-definition.json
container-name: ...
image: ...
Action does not respect github default working directory
Previous issues that had to deal with this subtle error: https://github.com/aws-actions/amazon-ecs-render-task-definition/issues/68#issuecomment-881407765