Skip to content

Commit 96e1d82

Browse files
committed
Fix repo url from workflow build
1 parent 8110f1a commit 96e1d82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/compile_resources.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $BUILD_NUMBER = If ($Env:GITHUB_EXCLUDE_BUILD_NUMBER) { '' } Else { Get-Date -Fo
1414
$GITHUB_REPOSITORY = $Env:GITHUB_HEAD_REPOSITORY
1515
If (-not $GITHUB_REPOSITORY) {
1616
$repo_url = git config --get remote.origin.url
17-
$GITHUB_REPOSITORY = $repo_url.substring(19, $repo_url.length - 19 - 4)
17+
$GITHUB_REPOSITORY = $repo_url.substring(19, $repo_url.length - 19) -replace '\.git', ''
1818
}
1919
If (-not $GITHUB_REPOSITORY) {
2020
$GITHUB_REPOSITORY = 'Toufool/Auto-Split'

0 commit comments

Comments
 (0)