We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e237ff5 commit 8a680a1Copy full SHA for 8a680a1
.github/workflows/tag-release.nu
@@ -122,8 +122,15 @@ export def find-first-commit [] {
122
# Defaults to parsing the working directory's `origin` remote url.
123
export def find-repo-name [] {
124
$env | get --optional "GITHUB_REPO" | default {
125
- (^git remote get-url origin)
126
- | str trim
+ let origin = (^git remote get-url origin) | str trim
+ (
127
+ if (not ($origin | str starts-with "https://")) {
128
+ let patched_ssh = $origin | str replace --regex '([^:]):' '$1:/'
129
+ $"ssh://($patched_ssh)"
130
+ } else {
131
+ $origin
132
+ }
133
+ )
134
| url parse
135
| get path
136
| str trim --left --char "/"
0 commit comments