如何在任务中获取当前舞台名称?

How to get current stage name in task?

我知道如何使用 fetch() 方法获取配置变量,但我可以在任务中获取阶段名称(生产、阶段)吗?

提前致谢

我找到了答案:fetch(:stage)