|
2 | 2 | #Requires -Version 7.2 |
3 | 3 | Import-Module -Name ( |
4 | 4 | @( |
5 | | - 'nodejs-invoke', |
| 5 | + 'nodejs-wrapper', |
6 | 6 | 'utility' |
7 | 7 | ) | |
8 | 8 | ForEach-Object -Process { Join-Path -Path $PSScriptRoot -ChildPath "$_.psm1" } |
@@ -44,20 +44,7 @@ Function Restore-Cache { |
44 | 44 | [Parameter(ValueFromPipelineByPropertyName = $True)][ValidateRange(5, 7200)][UInt16]$SegmentTimeout, |
45 | 45 | [Parameter(ValueFromPipelineByPropertyName = $True)][Switch]$LookUp |
46 | 46 | ) |
47 | | - Begin { |
48 | | - <# [DISABLED] NodeJS wrapper operation |
49 | | - [Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -Cache)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script. |
50 | | - If ($NoOperation) { |
51 | | - Write-Error -Message 'Unable to get GitHub Actions cache resources!' -Category 'ResourceUnavailable' |
52 | | - } |
53 | | - #> |
54 | | - } |
55 | 47 | Process { |
56 | | - <# [DISABLED] NodeJS wrapper operation |
57 | | - If ($NoOperation) { |
58 | | - Return |
59 | | - } |
60 | | - #> |
61 | 48 | [Hashtable]$InputObject = @{ |
62 | 49 | PrimaryKey = $Key[0] |
63 | 50 | Path = ($PSCmdlet.ParameterSetName -ieq 'LiteralPath') ? ( |
@@ -114,20 +101,7 @@ Function Save-Cache { |
114 | 101 | [Parameter(ValueFromPipelineByPropertyName = $True)][ValidateRange(1, 1MB)][Alias('ChunkSize', 'ChunkSizes', 'UploadChunkSize')][UInt32]$UploadChunkSizes, |
115 | 102 | [Parameter(ValueFromPipelineByPropertyName = $True)][ValidateRange(1, 16)][Alias('Concurrency')][Byte]$UploadConcurrency |
116 | 103 | ) |
117 | | - Begin { |
118 | | - <# [DISABLED] NodeJS wrapper operation |
119 | | - [Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -Cache)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script. |
120 | | - If ($NoOperation) { |
121 | | - Write-Error -Message 'Unable to get GitHub Actions cache resources!' -Category 'ResourceUnavailable' |
122 | | - } |
123 | | - #> |
124 | | - } |
125 | 104 | Process { |
126 | | - <# [DISABLED] NodeJS wrapper operation |
127 | | - If ($NoOperation) { |
128 | | - Return |
129 | | - } |
130 | | - #> |
131 | 105 | [Hashtable]$InputObject = @{ |
132 | 106 | Key = $Key |
133 | 107 | Path = ($PSCmdlet.ParameterSetName -ieq 'LiteralPath') ? ( |
|
0 commit comments