I’m creating a reusable workflow for Github Actions which needs to get a path to the workflow that was initially executed (so the workflow that’s calling the reusable workflow).
If the calling workflow doesn’t have a name specified you can get this path from the
github context in
github.workflow. But if the workflow does have a name specified,
github.workflow is a human readable name of the workflow so I can’t get the path reliably.
I can also get the path via
github.event.workflow but only if the event contains that data and only a few event types do.
Is there a way to reliably get the path to the workflow that’s being executed?