# Conditional env yaml

**URL:** <https://community.shotgridsoftware.com/t/conditional-env-yaml/18936>\
**Category:** Uncategorized\
**Created:** [June 24, 2024, 4:58pm UTC](https://community.shotgridsoftware.com/t/conditional-env-yaml/18936 "2024-06-24T16:58:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Fabian](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/fabian/32/3508_2.png) [@Fabian](https://community.shotgridsoftware.com/u/Fabian)\
**Post date:** [June 25, 2024, 5:42am UTC](https://community.shotgridsoftware.com/t/conditional-env-yaml/18936/2 "2024-06-25T05:42:55Z")

</div>

Hi @stavernia !

I think you could create a core hook and link it to the publish settings somehow. Have a look at this thread [https://community.shotgridsoftware.com/t/tk-multi-workfiles-saveas-default-name-setting/3729/11](https://community.shotgridsoftware.com/t/tk-multi-workfiles-saveas-default-name-setting/3729/11)

It gives you an example how to set it up.

Hope that helps!

---

_[View the full topic](https://community.shotgridsoftware.com/t/conditional-env-yaml/18936)._
