mirror of
https://github.com/actions/runner.git
synced 2026-01-23 21:11:34 +08:00
do not wipe actions
This commit is contained in:
@@ -542,9 +542,14 @@ EXAMPLES:
|
||||
Trace.Info($"Preparing action '{command.Action}' for download...");
|
||||
|
||||
// PrepareActionsAsync downloads the action and returns info about pre/post steps
|
||||
// Pass actionStep.Id as rootStepId to avoid wiping the _actions directory.
|
||||
// When rootStepId is default(Guid), PrepareActionsAsync assumes it's the start
|
||||
// of a job and deletes all previously downloaded actions - which would break
|
||||
// post-steps from actions that were already running.
|
||||
var prepareResult = await actionManager.PrepareActionsAsync(
|
||||
jobContext,
|
||||
new[] { actionStep }
|
||||
new[] { actionStep },
|
||||
actionStep.Id
|
||||
);
|
||||
|
||||
// Check if this action has a pre-step
|
||||
|
||||
Reference in New Issue
Block a user