-
|
If i define a pre workflow hook for a repo in my server config file AND I have custom workflows in the repo level atlantis.yaml, will the pre workflow hooks be respected by the custom workflow? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Yes, pre workflow hooks defined in your server config file are always respected and executed before any workflow runs, including custom workflows defined in the repo-level atlantis.yaml. The execution of these hooks is independent of whether you use the default workflow or a custom one—there’s no code path that disables or overrides server-level pre workflow hooks when a custom workflow is present. If a pre workflow hook fails and you have the To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Yes, pre workflow hooks defined in your server config file are always respected and executed before any workflow runs, including custom workflows defined in the repo-level atlantis.yaml. The execution of these hooks is independent of whether you use the default workflow or a custom one—there’s no code path that disables or overrides server-level pre workflow hooks when a custom workflow is present. If a pre workflow hook fails and you have the
fail-on-pre-workflow-hook-errorflag set, the main workflow (custom or default) will not run; otherwise, Atlantis will proceed with the workflow even if the pre hook fails. You can see this logic in the pre workflow hooks runner implementation and …