Skip to content

Commit a68c74f

Browse files
🩹 [Patch]: Adding nightly run workflow (#13)
## Description - Adding nightly run workflow ## 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 e132be7 commit a68c74f

2 files changed

Lines changed: 20 additions & 3 deletions

File tree

.github/workflows/Nightly-Run.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Nightly run
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 * * *'
7+
8+
permissions:
9+
contents: write
10+
issues: write
11+
pull-requests: write
12+
statuses: write
13+
14+
jobs:
15+
Process-PSModule:
16+
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v1
17+
secrets: inherit

src/public/Remove-EnvironmentPath.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ function Remove-EnvironmentPath {
2929
Remove the paths 'C:\Program Files\Git\cmd' and 'C:\Program Files\Git\bin' from the PATH environment variable for the current user.
3030
3131
.EXAMPLE
32-
(Get-EnvironmentPath -Scope AllUsers -AsArray) | where {$_ -like "$env:USERPROFILE*"} | Remove-EnvironmentPath -Scope AllUsers -Verbose
32+
(Get-EnvironmentPath -Scope AllUsers -AsArray) | where {$_ -like "$env:USERPROFILE*"} | Remove-EnvironmentPath -Scope AllUsers
3333
3434
Remove all paths from the PATH environment variable for all users that start with the current user's profile path.
3535
3636
.EXAMPLE
3737
(Get-EnvironmentPath -Scope CurrentUser -AsArray) |
3838
where {$_ -like "$env:windir*" -or $_ -like "$env:ProgramFiles*" -or $_ -like "${env:ProgramFiles(x86)}*"} |
39-
Remove-EnvironmentPath -Scope CurrentUser -Verbose
39+
Remove-EnvironmentPath -Scope CurrentUser
4040
4141
Remove all paths from the PATH environment variable for the current user that start with the Windows directory,
4242
Program Files directory or Program Files (x86) directory.
@@ -50,7 +50,7 @@ function Remove-EnvironmentPath {
5050
[string] $Scope = 'CurrentUser'
5151
)
5252

53-
DynamicParam {
53+
dynamicparam {
5454
$DynamicParamDictionary = New-DynamicParamDictionary
5555

5656
$dynPath = @{

0 commit comments

Comments
 (0)