Skip to content

Commit 41e8d81

Browse files
🩹 [Patch]: Add WorkingDirectory input to action configuration and README (#31)
## Description This pull request introduces a new input parameter to specify the working directory for the script execution in the PSModule framework. The changes are reflected in the documentation and the action configuration file. ### Documentation Update * `README.md`: * Added a description for the new `WorkingDirectory` parameter, specifying its default value as `${{ github.workspace }}`. ### Action Configuration * `action.yml`: * Introduced the `WorkingDirectory` input parameter with a description, default value, and its inclusion in the `runs` section to pass the value to the script. ## 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 1d72e9a commit 41e8d81

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ The Initialize-PSModule action will prepare the runner for the PSModule framewor
4040
| `Verbose` | Enable verbose output. | `false` | `'false'` |
4141
| `Version` | Specifies the version of the GitHub module to be installed. The value must be an exact version. | `false` | |
4242
| `Prerelease` | Allow prerelease versions if available. | `false` | `'false'` |
43+
| `WorkingDirectory` | The working directory where the script runs. | `false` | `${{ github.workspace }}` |
4344

4445
## Example
4546

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ inputs:
2121
description: Allow prerelease versions if available.
2222
required: false
2323
default: 'false'
24+
WorkingDirectory:
25+
description: The working directory where the script will run from.
26+
required: false
27+
default: ${{ github.workspace }}
2428

2529
runs:
2630
using: composite
@@ -32,6 +36,7 @@ runs:
3236
Prerelease: ${{ inputs.Prerelease }}
3337
Verbose: ${{ inputs.Verbose }}
3438
Version: ${{ inputs.Version }}
39+
WorkingDirectory: ${{ inputs.WorkingDirectory }}
3540
Script: |
3641
# Initialize-PSModule
3742
${{ github.action_path }}\scripts\main.ps1

0 commit comments

Comments
 (0)