mirror of
https://github.com/actions/runner.git
synced 2025-12-14 22:04:58 +00:00
17 lines
548 B
C#
17 lines
548 B
C#
using GitHub.DistributedTask.Pipelines.ContextData;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace GitHub.Runner.Worker
|
|
{
|
|
public sealed class RunnerContext : DictionaryContextData, IEnvironmentContextData
|
|
{
|
|
public IEnumerable<KeyValuePair<string, string>> GetRuntimeEnvironmentVariables()
|
|
{
|
|
foreach (var data in this)
|
|
{
|
|
yield return new KeyValuePair<string, string>($"RUNNER_{data.Key.ToUpperInvariant()}", data.Value as StringContextData);
|
|
}
|
|
}
|
|
}
|
|
} |