mirror of
https://github.com/actions/runner.git
synced 2025-12-12 05:37:01 +00:00
chore: remove redundant words (#3705)
Signed-off-by: finaltrip <finaltrip@qq.com>
This commit is contained in:
@@ -23,7 +23,7 @@ This feature is mainly intended for self hosted runner administrators.
|
|||||||
- `ACTIONS_RUNNER_HOOK_JOB_STARTED`
|
- `ACTIONS_RUNNER_HOOK_JOB_STARTED`
|
||||||
- `ACTIONS_RUNNER_HOOK_JOB_COMPLETED`
|
- `ACTIONS_RUNNER_HOOK_JOB_COMPLETED`
|
||||||
|
|
||||||
You can set these variables to the **absolute** path of a a `.sh` or `.ps1` file.
|
You can set these variables to the **absolute** path of a `.sh` or `.ps1` file.
|
||||||
|
|
||||||
We will execute `pwsh` (fallback to `powershell`) or `bash` (fallback to `sh`) as appropriate.
|
We will execute `pwsh` (fallback to `powershell`) or `bash` (fallback to `sh`) as appropriate.
|
||||||
- `.sh` files will execute with the args `-e {pathtofile}`
|
- `.sh` files will execute with the args `-e {pathtofile}`
|
||||||
|
|||||||
2
src/Misc/dotnet-install.sh
vendored
2
src/Misc/dotnet-install.sh
vendored
@@ -11,7 +11,7 @@ set -u
|
|||||||
# This is causing it to fail
|
# This is causing it to fail
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
# Use in the the functions: eval $invocation
|
# Use in the functions: eval $invocation
|
||||||
invocation='say_verbose "Calling: ${yellow:-}${FUNCNAME[0]} ${green:-}$*${normal:-}"'
|
invocation='say_verbose "Calling: ${yellow:-}${FUNCNAME[0]} ${green:-}$*${normal:-}"'
|
||||||
|
|
||||||
# standard output may be used as a return value in the functions
|
# standard output may be used as a return value in the functions
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ namespace GitHub.DistributedTask.Pipelines.ObjectTemplating
|
|||||||
{
|
{
|
||||||
if (!NameValidation.IsValid(value, allowHyphens: true) && value.Length < PipelineConstants.MaxNodeNameLength)
|
if (!NameValidation.IsValid(value, allowHyphens: true) && value.Length < PipelineConstants.MaxNodeNameLength)
|
||||||
{
|
{
|
||||||
error = $"The identifier '{value}' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than {PipelineConstants.MaxNodeNameLength} characters.";
|
error = $"The identifier '{value}' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and must be less than {PipelineConstants.MaxNodeNameLength} characters.";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if (!m_distinctNames.Add(value))
|
else if (!m_distinctNames.Add(value))
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace GitHub.DistributedTask.WebApi
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The url to connect to to poll for messages
|
/// The url to connect to poll for messages
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("server_url")]
|
[JsonProperty("server_url")]
|
||||||
public string ServerUrl
|
public string ServerUrl
|
||||||
|
|||||||
@@ -677,7 +677,7 @@ namespace GitHub.Services.WebApi.Location
|
|||||||
Int32 lastChangeId = m_locationDataCacheManager.GetLastChangeId();
|
Int32 lastChangeId = m_locationDataCacheManager.GetLastChangeId();
|
||||||
|
|
||||||
// If we have -1 then that means we have no disk cache yet or it means that we recently hit an exception trying to reload
|
// If we have -1 then that means we have no disk cache yet or it means that we recently hit an exception trying to reload
|
||||||
// the the cache from disk (see Exception catch block in EnsureDiskCacheLoaded).
|
// the cache from disk (see Exception catch block in EnsureDiskCacheLoaded).
|
||||||
// Either way, we cannot make a call to the server with -1 and pass None.
|
// Either way, we cannot make a call to the server with -1 and pass None.
|
||||||
// If we do, the resulting payload (which would have ClientCacheFresh=false but include no ServiceDefinitions)
|
// If we do, the resulting payload (which would have ClientCacheFresh=false but include no ServiceDefinitions)
|
||||||
// would leave the in-memory cache in an inconsistent state
|
// would leave the in-memory cache in an inconsistent state
|
||||||
|
|||||||
Reference in New Issue
Block a user