Expose workflow name as environment variable?

envars

#1

I’ve seen 2.0: Need CIRCLE_WORKFLOW_ID env var exposed, but I’d really like to be able to know what workflow is running by name.

My use case is that I run a nightly deploy of my native app to TestFlight, via fastlane, and I’d like to only deploy my app when it’s run from the workflow attached to the cron job.

So, within my script then, I’d check for (e.g.) CIRCLE_WORKFLOW_NAME == 'nightly', and go merrily on my way.

Thoughts?


#2

#3

We no longer use Discuss to handle feature requests but you can vote for this request here: https://circleci.com/ideas/?idea=CCI-I-295