File tree 1 file changed +5
-0
lines changed
src/main/groovy/net/minecraftforge/gradleutils
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,8 @@ final class PomUtils {
117
117
org. url. set ' https://minecraftforge.net'
118
118
}
119
119
120
+ var inCI = GradleUtils . hasEnvVar(' GITHUB_ACTIONS' , this . providers). get(). booleanValue()
121
+
120
122
var remoteUrl = stripProtocol(this . gitversion. version. info. url)
121
123
var url = remoteUrl
122
124
if (organization && repo) {
@@ -133,6 +135,9 @@ final class PomUtils {
133
135
this . logger. warn """
134
136
WARNING: The GitHub URL for this repo could not be automatically determined by GitVersion.
135
137
This is likely due to the repository not having any remotes, or not having one set."""
138
+ if (inCI)
139
+ throw new IllegalStateException (' GitHub URL could not be determined, which is required in CI' )
140
+
136
141
return
137
142
}
138
143
You can’t perform that action at this time.
0 commit comments