Skip to content

Commit ba173ca

Browse files
committed
20230721C
1 parent bd74d1f commit ba173ca

File tree

12 files changed

+107
-64532
lines changed

12 files changed

+107
-64532
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.7.0-beta.4"
21+
- "v1.7.0-beta.5"
2222
- "v1.6.0"
2323
- "v1.5.0"
2424
- "v1.4.1"

.github/workflows/publish-powershell-module-psg.yml

Lines changed: 65 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,68 @@ defaults:
1010
jobs:
1111
main:
1212
name: "Main"
13-
uses: "hugoalh/hugoalh/.github/workflows/publish-powershell-module-psg.yml@main"
14-
with:
15-
path: ".\\hugoalh.GitHubActionsToolkit\\"
16-
secrets:
17-
POWERSHELLGALLERY_TOKEN: "${{secrets.POWERSHELLGALLERY_TOKEN}}"
13+
runs-on: "ubuntu-latest"
14+
steps:
15+
- name: "Checkout Repository"
16+
uses: "actions/[email protected]"
17+
- name: "Setup NodeJS"
18+
uses: "actions/[email protected]"
19+
with:
20+
node-version: "14"
21+
check-latest: true
22+
registry-url: "https://registry.npmjs.org/"
23+
- name: "Setup PowerShell Toolkit"
24+
uses: "hugoalh-studio/[email protected]"
25+
with:
26+
version: "^1.6.0"
27+
- name: "Get NodeJS Wrapper Directory"
28+
id: "nodejs-wrapper-directory"
29+
run: |
30+
Import-Module -Name 'hugoalh.GitHubActionsToolkit' -Scope 'Local'
31+
[String]$NodeJSWrapperRoot = Join-Path -Path $Env:GITHUB_WORKSPACE -ChildPath 'hugoalh.GitHubActionsToolkit\nodejs-wrapper'
32+
Set-GitHubActionsOutput -Name 'path' -Value $NodeJSWrapperRoot
33+
- name: "Bundle NodeJS Wrapper Dependencies"
34+
run: |
35+
npm install --package-lock=false
36+
working-directory: "${{steps.nodejs-wrapper-directory.outputs.path}}"
37+
- name: "Test Publish"
38+
run: |
39+
Publish-Module -Path '.\hugoalh.GitHubActionsToolkit\' -NugetAPIKey 'GUID' -WhatIf -Verbose
40+
- name: "Publish"
41+
run: |
42+
Publish-Module -Path '.\hugoalh.GitHubActionsToolkit\' -NugetAPIKey '${{secrets.POWERSHELLGALLERY_TOKEN}}' -Verbose
43+
main-fallback:
44+
name: "Main (Fallback)"
45+
needs:
46+
- "main"
47+
if: "${{needs.main.result == 'failure'}}"
48+
runs-on: "windows-latest"
49+
steps:
50+
- name: "Checkout Repository"
51+
uses: "actions/[email protected]"
52+
- name: "Setup NodeJS"
53+
uses: "actions/[email protected]"
54+
with:
55+
node-version: "14"
56+
check-latest: true
57+
registry-url: "https://registry.npmjs.org/"
58+
- name: "Setup PowerShell Toolkit"
59+
uses: "hugoalh-studio/[email protected]"
60+
with:
61+
version: "^1.6.0"
62+
- name: "Get NodeJS Wrapper Directory"
63+
id: "nodejs-wrapper-directory"
64+
run: |
65+
Import-Module -Name 'hugoalh.GitHubActionsToolkit' -Scope 'Local'
66+
[String]$NodeJSWrapperRoot = Join-Path -Path $Env:GITHUB_WORKSPACE -ChildPath 'hugoalh.GitHubActionsToolkit\nodejs-wrapper'
67+
Set-GitHubActionsOutput -Name 'path' -Value $NodeJSWrapperRoot
68+
- name: "Bundle NodeJS Wrapper Dependencies"
69+
run: |
70+
npm install --package-lock=false
71+
working-directory: "${{steps.nodejs-wrapper-directory.outputs.path}}"
72+
- name: "Test Publish"
73+
run: |
74+
Publish-Module -Path '.\hugoalh.GitHubActionsToolkit\' -NugetAPIKey 'GUID' -WhatIf -Verbose
75+
- name: "Publish"
76+
run: |
77+
Publish-Module -Path '.\hugoalh.GitHubActionsToolkit\' -NugetAPIKey '${{secrets.POWERSHELLGALLERY_TOKEN}}' -Verbose

_get-package-members.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This script is help for copy members to the file `hugoalh.GitHubActionsToolkit.psd1` for best performance, and use for debug.
44
#>
55
[String]$PackageName = 'hugoalh.GitHubActionsToolkit'
6-
Import-Module -Name (Join-Path -Path $PSScriptRoot -ChildPath $PackageName -AdditionalChildPath "$PackageName.psm1") -Scope 'Local'
6+
Import-Module -Name (Join-Path -Path $PSScriptRoot -ChildPath $PackageName -AdditionalChildPath @("$PackageName.psm1")) -Scope 'Local'
77
[PSCustomObject[]]$PackageCommands = Get-Command -Module $PackageName -ListImported
88
ForEach ($CommandType In @('Function', 'Alias')) {
99
$PackageCommands |

bundler.js

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

hugoalh.GitHubActionsToolkit/hugoalh.GitHubActionsToolkit.psd1

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

276276
# Prerelease string of this module
277-
Prerelease = 'beta4'
277+
Prerelease = 'beta5'
278278

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

hugoalh.GitHubActionsToolkit/hugoalh.GitHubActionsToolkit.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
)
1818
Import-Module -Name (
1919
$ModulesName |
20-
ForEach-Object -Process { Join-Path -Path $PSScriptRoot -ChildPath 'module' -AdditionalChildPath "$_.psm1" }
20+
ForEach-Object -Process { Join-Path -Path $PSScriptRoot -ChildPath 'module' -AdditionalChildPath @("$_.psm1") }
2121
) -Scope 'Local'
2222
[PSCustomObject[]]$PackageCommands = Get-Command -Module $ModulesName -ListImported
2323
[String[]]$PackageFunctions = $PackageCommands |

0 commit comments

Comments
 (0)