Skip to content

Commit 336136c

Browse files
🩹 [Patch]: Add new parameters to Initialize-PSModule (#11)
## Description - Add new parameters to `Initialize-PSModule`. ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [ ] 🪲 [Fix] - [x] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent 40cd810 commit 336136c

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

.github/workflows/Workflow-Test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ jobs:
1414
ModulesOutputPath: tests/outputs/modules
1515
DocsOutputPath: tests/outputs/docs
1616
TestProcess: true
17+
PreRelease: true

.github/workflows/workflow.test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ on:
3636
description: Whether to test the process.
3737
required: false
3838
default: false
39+
Version:
40+
type: string
41+
description: The version of the 'Utilities' module to process.
42+
required: false
43+
Prerelease:
44+
type: boolean
45+
description: Whether the version is a prerelease.
46+
required: false
47+
default: false
3948

4049
env:
4150
GITHUB_TOKEN: ${{ github.token }} # Used for GitHub CLI authentication
@@ -63,6 +72,9 @@ jobs:
6372
6473
- name: Initialize environment
6574
uses: PSModule/Initialize-PSModule@v1
75+
with:
76+
Version: ${{ inputs.Version }}
77+
Prerelease: ${{ inputs.Prerelease }}
6678

6779
- name: Test source code
6880
uses: PSModule/Test-PSModule@v1

.github/workflows/workflow.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ on:
3636
description: Whether to test the process.
3737
required: false
3838
default: false
39+
Version:
40+
type: string
41+
description: The version of the 'Utilities' module to process.
42+
required: false
43+
Prerelease:
44+
type: boolean
45+
description: Whether the version is a prerelease.
46+
required: false
47+
default: false
3948

4049
env:
4150
GITHUB_TOKEN: ${{ github.token }} # Used for GitHub CLI authentication
@@ -50,6 +59,9 @@ jobs:
5059

5160
- name: Initialize environment
5261
uses: PSModule/Initialize-PSModule@v1
62+
with:
63+
Version: ${{ inputs.Version }}
64+
Prerelease: ${{ inputs.Prerelease }}
5365

5466
- name: Test source code
5567
uses: PSModule/Test-PSModule@v1

0 commit comments

Comments
 (0)