Open chenrui333 opened 3 years ago
Is this guaranteed to be valid? Since xxx:
is a key of mapping object, order of evaluation of keys is not guaranteed I think. In YAML semantics, order of keys of mapping object is undefined. For easier example, order of keys of JSON object is not deterministic.
In your example, is it guaranteed that the evaluation of LOCAL_TAG: ...
happens before the evaluation of AWS_TASKDEF: ...
?
I made a question at the forum.
https://github.community/t/spec-about-the-order-of-evaluation-of-mapping-values/212889
I would recommend asking in https://github.com/actions/runner repository
The env variable cannot reference another env variable at the same level, for example, it wont work like this
But it can be put into different levels as below would work
so ref, https://stackoverflow.com/questions/69979085/github-actions-using-variables-in-global-env-section