Skip to content

Commit 72a522c

Browse files
🩹 [Patch]: Add Owner input to workflow and update Get-GitHubRepository calls for flexibility
1 parent 377f99b commit 72a522c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

‎.github/workflows/TestWorkflow.yml‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010
required: false
1111
type: boolean
1212
default: false
13+
Owner:
14+
description: The owner of the repository
15+
required: false
16+
type: string
17+
default: PSModule
1318
secrets:
1419
TEST_USER_PAT:
1520
description: Personal Access Token for the test user
@@ -412,7 +417,7 @@ jobs:
412417
}
413418
414419
LogGroup 'Get-GitHubRepository' {
415-
Get-GitHubRepository -Owner PSModule | Out-String
420+
Get-GitHubRepository -Owner '${{ inputs.Owner }}' | Out-String
416421
}
417422
418423
ActionTestWithUSERFGPAT:
@@ -438,7 +443,7 @@ jobs:
438443
}
439444
440445
LogGroup 'Get-GitHubRepository' {
441-
Get-GitHubRepository -Owner PSModule | Out-String
446+
Get-GitHubRepository -Owner '${{ inputs.Owner }}' | Out-String
442447
}
443448
444449
ActionTestWithORGFGPAT:
@@ -464,7 +469,7 @@ jobs:
464469
}
465470
466471
LogGroup 'Get-GitHubRepository' {
467-
Get-GitHubRepository -Owner PSModule | Out-String
472+
Get-GitHubRepository -Owner '${{ inputs.Owner }}' | Out-String
468473
}
469474
470475
ActionTestWithGitHubAppEnt:

0 commit comments

Comments
 (0)