-
If you are looking for help, please confirm the following...
Which mobile framework are you using?Flutter (Dart) Steps to reproduceHi Codemagic, I'm working on integrating Discord notifications into my Codemagic workflows and would like to include the workflow ID that triggered the build in the message. I've attempted to use the Could you please advise on: Retrieving the workflow ID: Is there a specific way to correctly extract the workflow ID within the post-build script? Expected resultsWorkflow ID: Actual resultsWorkflow ID: Build id (optional)No response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Already been resolved on Discord but just to respond in here as well. You can use the built in environment variable |
Beta Was this translation helpful? Give feedback.
Already been resolved on Discord but just to respond in here as well.
You can use the built in environment variable
CM_BUILD_ID
which is a UUID of the build.Check out the rest of built in environment variables on this link https://docs.codemagic.io/yaml-basic-configuration/environment-variables/