mirror of
https://github.com/actions/runner.git
synced 2025-12-12 05:37:01 +00:00
Compare commits
2 Commits
v2.280.3
...
thboop/Rev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
10b624dd10 | ||
|
|
28d01a0160 |
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## Bugs
|
## Bugs
|
||||||
|
|
||||||
- Fixed an issue where composite steps would not run on `failure()` or `always()` when the job failed (#1273)
|
- Reverts (#1273) as the behavior was unexpected.
|
||||||
|
|
||||||
## Misc
|
## Misc
|
||||||
|
|
||||||
|
|||||||
@@ -294,14 +294,6 @@ namespace GitHub.Runner.Worker.Handlers
|
|||||||
// Register Callback
|
// Register Callback
|
||||||
CancellationTokenRegistration? jobCancelRegister = null;
|
CancellationTokenRegistration? jobCancelRegister = null;
|
||||||
try
|
try
|
||||||
{
|
|
||||||
// For main steps just run the action
|
|
||||||
if (stage == ActionRunStage.Main)
|
|
||||||
{
|
|
||||||
await RunStepAsync(step);
|
|
||||||
}
|
|
||||||
// We need to evaluate conditions for pre/post steps
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
// Register job cancellation call back only if job cancellation token not been fire before each step run
|
// Register job cancellation call back only if job cancellation token not been fire before each step run
|
||||||
if (!ExecutionContext.Root.CancellationToken.IsCancellationRequested)
|
if (!ExecutionContext.Root.CancellationToken.IsCancellationRequested)
|
||||||
@@ -397,7 +389,6 @@ namespace GitHub.Runner.Worker.Handlers
|
|||||||
await RunStepAsync(step);
|
await RunStepAsync(step);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
if (jobCancelRegister != null)
|
if (jobCancelRegister != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user