Google Drive action doesn’t work when called in another action

I have an action that sends a draft to Google Drive and works fine when called on its own.

I have another action that calls four actions: one that removes blank lines, then one that makes quotes curly, then the Google Drive action, and then an action sending the draft to Ulysses.

When I use this second action, the draft won’t appear in my Google Drive the first time I run it. But if I immediately run it again, it will send the draft to Google Drive.

Any idea what’s going on here or how to fix this? Or is it just a bug?