Skip to content

Commit f2dd83d

Browse files
committed
20230313A
1 parent 3e547c2 commit f2dd83d

20 files changed

+223
-65131
lines changed

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ body:
1818
description: "What versions are affected? Versions must be listed as supported in the Security Policy (file: `SECURITY.md`)."
1919
multiple: true
2020
options:
21-
- "v1.3.2-beta.3"
21+
- "v1.3.2-beta.4"
2222
- "v1.3.1"
2323
- "v1.3.0"
2424
- "v1.2.3"

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ updates:
1515
separator: "/"
1616
rebase-strategy: "disabled"
1717
- package-ecosystem: "npm"
18-
directory: "/nodejs-wrapper-source"
18+
directory: "/hugoalh.GitHubActionsToolkit/module/nodejs-wrapper"
1919
schedule:
2020
interval: "daily"
2121
time: "00:00"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ For the full documentation, please visit the [GitHub Repository Wiki](https://gi
2929

3030
- PowerShell >= v7.2.0
3131
- NodeJS >= v14.15.0 (only for NodeJS wrapper API)
32-
- NPM >= v6.14.8 (only for NodeJS wrapper API, < v1.2.0)
32+
- NPM >= v6.14.8 (only for NodeJS wrapper API)
3333

3434
```ps1
3535
Install-Module -Name 'hugoalh.GitHubActionsToolkit' -AcceptLicense

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
1414
| **Versions** | **Status** | **Target - PowerShell** | **Target - NodeJS (Wrapper API)** | **Target - NPM (Wrapper API)** |
1515
|:-:|:-:|:-:|:-:|:-:|
16-
| v1.3.X | L | >= v7.2.0 | >= v14.15.0 | *N/A* |
16+
| v1.3.X | L | >= v7.2.0 | >= v14.15.0 | >= v6.14.8 |
1717
| v1.3.0 \~ v1.3.1 | 👎{🐛} | >= v7.2.0 | >= v14.15.0 | *N/A* |
1818
| v1.2.X | 👎{🐛} | >= v7.2.0 | >= v14.15.0 | *N/A* |
1919
| v1.1.X | 👎{🐛} | >= v7.2.0 | >= v14.15.0 | >= v6.14.8 |

hugoalh.GitHubActionsToolkit/hugoalh.GitHubActionsToolkit.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@
250250
ReleaseNotes = '(Please visit https://github.com/hugoalh-studio/ghactions-toolkit-powershell/releases.)'
251251

252252
# Prerelease string of this module
253-
Prerelease = 'beta3'
253+
Prerelease = 'beta4'
254254

255255
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
256256
RequireLicenseAcceptance = $False

hugoalh.GitHubActionsToolkit/hugoalh.GitHubActionsToolkit.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
'command-control',
88
'environment-variable',
99
'log',
10-
'nodejs-test',
10+
'nodejs-wrapper',
1111
'open-id-connect',
1212
'parameter',
1313
'problem-matcher',

hugoalh.GitHubActionsToolkit/module/artifact.psm1

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#Requires -Version 7.2
33
Import-Module -Name (
44
@(
5-
'nodejs-invoke',
5+
'nodejs-wrapper',
66
'utility'
77
) |
88
ForEach-Object -Process { Join-Path -Path $PSScriptRoot -ChildPath "$_.psm1" }
@@ -38,20 +38,7 @@ Function Export-Artifact {
3838
[Parameter(ValueFromPipelineByPropertyName = $True)][Alias('ContinueOnError')][Switch]$ContinueOnIssue,
3939
[Parameter(ValueFromPipelineByPropertyName = $True)][Alias('RetentionDay')][Byte]$RetentionTime
4040
)
41-
Begin {
42-
<# [DISABLED] NodeJS wrapper operation
43-
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -Artifact)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
44-
If ($NoOperation) {
45-
Write-Error -Message 'Unable to get GitHub Actions artifact resources!' -Category 'ResourceUnavailable'
46-
}
47-
#>
48-
}
4941
Process {
50-
<# [DISABLED] NodeJS wrapper operation
51-
If ($NoOperation) {
52-
Return
53-
}
54-
#>
5542
Switch ($PSCmdlet.ParameterSetName) {
5643
'LiteralPath' {
5744
[String[]]$PathsProceed = $LiteralPath |
@@ -110,20 +97,7 @@ Function Import-Artifact {
11097
[Parameter(Mandatory = $True, ParameterSetName = 'All')][Switch]$All,
11198
[Parameter(ValueFromPipelineByPropertyName = $True)][Alias('Dest', 'Path', 'Target')][String]$Destination = $Env:GITHUB_WORKSPACE
11299
)
113-
Begin {
114-
<# [DISABLED] NodeJS wrapper operation
115-
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -Artifact)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
116-
If ($NoOperation) {
117-
Write-Error -Message 'Unable to get GitHub Actions artifact resources!' -Category 'ResourceUnavailable'
118-
}
119-
#>
120-
}
121100
Process {
122-
<# [DISABLED] NodeJS wrapper operation
123-
If ($NoOperation) {
124-
Return
125-
}
126-
#>
127101
Switch ($PSCmdlet.ParameterSetName) {
128102
'All' {
129103
Invoke-GitHubActionsNodeJsWrapper -Name 'artifact/download-all' -InputObject @{

hugoalh.GitHubActionsToolkit/module/cache.psm1

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#Requires -Version 7.2
33
Import-Module -Name (
44
@(
5-
'nodejs-invoke',
5+
'nodejs-wrapper',
66
'utility'
77
) |
88
ForEach-Object -Process { Join-Path -Path $PSScriptRoot -ChildPath "$_.psm1" }
@@ -44,20 +44,7 @@ Function Restore-Cache {
4444
[Parameter(ValueFromPipelineByPropertyName = $True)][ValidateRange(5, 7200)][UInt16]$SegmentTimeout,
4545
[Parameter(ValueFromPipelineByPropertyName = $True)][Switch]$LookUp
4646
)
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-
}
5547
Process {
56-
<# [DISABLED] NodeJS wrapper operation
57-
If ($NoOperation) {
58-
Return
59-
}
60-
#>
6148
[Hashtable]$InputObject = @{
6249
PrimaryKey = $Key[0]
6350
Path = ($PSCmdlet.ParameterSetName -ieq 'LiteralPath') ? (
@@ -114,20 +101,7 @@ Function Save-Cache {
114101
[Parameter(ValueFromPipelineByPropertyName = $True)][ValidateRange(1, 1MB)][Alias('ChunkSize', 'ChunkSizes', 'UploadChunkSize')][UInt32]$UploadChunkSizes,
115102
[Parameter(ValueFromPipelineByPropertyName = $True)][ValidateRange(1, 16)][Alias('Concurrency')][Byte]$UploadConcurrency
116103
)
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-
}
125104
Process {
126-
<# [DISABLED] NodeJS wrapper operation
127-
If ($NoOperation) {
128-
Return
129-
}
130-
#>
131105
[Hashtable]$InputObject = @{
132106
Key = $Key
133107
Path = ($PSCmdlet.ParameterSetName -ieq 'LiteralPath') ? (

hugoalh.GitHubActionsToolkit/module/nodejs-invoke.psm1

Lines changed: 0 additions & 70 deletions
This file was deleted.

hugoalh.GitHubActionsToolkit/module/nodejs-test.psm1

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)