File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
hugoalh.GitHubActionsToolkit/module Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 10
10
. SYNOPSIS
11
11
GitHub Actions - Test NodeJS Environment
12
12
. DESCRIPTION
13
- Test the current machine whether has compatible NodeJS and NPM environment, and has dependencies ready. Test result always cache for reuse.
13
+ Test the current machine whether has compatible NodeJS and NPM environment, and has dependencies ready; Test result always cache for reuse.
14
14
. PARAMETER ReinstallDependencies
15
15
Force to reinstall dependencies even though available.
16
16
. PARAMETER Retest
Original file line number Diff line number Diff line change @@ -103,6 +103,9 @@ Function Get-WorkflowRunUri {
103
103
[CmdletBinding (HelpUri = ' https://github.com/hugoalh-studio/ghactions-toolkit-powershell/wiki/api_function_get-githubactionsworkflowrunuri#Get-GitHubActionsWorkflowRunUri' )]
104
104
[OutputType ([String ])]
105
105
Param ()
106
+ If (! (Test-Environment )) {
107
+ Return (Write-Error - Message ' Unable to get GitHub Actions resources!' - Category ' ResourceUnavailable' )
108
+ }
106
109
Return " $Env: GITHUB_SERVER_URL /$Env: GITHUB_REPOSITORY /actions/runs/$Env: GITHUB_RUN_ID "
107
110
}
108
111
Set-Alias - Name ' Get-WorkflowRunUrl' - Value ' Get-WorkflowRunUri' - Option ' ReadOnly' - Scope ' Local'
You can’t perform that action at this time.
0 commit comments