Sharing variables between ci scripts in Xcode Cloud.

Hello!

I am new to creating workflows in Xcode cloud. I have a problem I'm trying to solve.

In my ci_post_clone script I trigger a job in github. I need to keep track of the generated id in order to shut down the job in my ci_post_xcodebuild script.

What is the best way to do that? I tried assigning to a env variable and outputting the value to a file but it seems like ci_post_xcodebuild runs in a fresh env and can't find my variable.

Any help would be really appreciated.

Sharing variables between ci scripts in Xcode Cloud.
 
 
Q