Skip to content

Commit db747fe

Browse files
Caleb BroseCaleb Brose
authored andcommitted
Use repo name instead of url
1 parent f60752a commit db747fe

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

action.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ if (-not (Get-Module -ListAvailable GitHubActions)) {
99

1010
Import-Module GitHubActions
1111

12-
$repositoryUrl = Get-ActionInput repositoryUrl -Required
12+
$repositoryName = Get-ActionInput repositoryName -Required
1313
$defaultBranch = Get-ActionInput defaultBranch
1414
$rootDocsFolder = Get-ActionInput root
1515
$convertRootReadmeToHomePage = Get-ActionInput convertRootReadmeToHomePage
1616
$useHeaderForWikiName = Get-ActionInput useHeaderForWikiName
1717

18+
$repositoryUrl = "https://github.com/$repositoryName"
19+
1820
$wikiRepoName = ($repositoryUrl -split "/")[-1] + ".wiki"
1921
$wikiRepoUrl = "$repositoryUrl.wiki.git"
2022

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ description: Converts markdown content in a repository into a wiki.
44

55
inputs:
66

7-
repositoryUrl:
8-
description: The url of the repository being operated on
7+
repositoryName:
8+
description: The repository being operated on
99
required: true
1010

1111
defaultBranch:

0 commit comments

Comments
 (0)