Don't execute modrinth/CF plugins if their token is not present

This commit is contained in:
glowredman authored and Jason Mitchell committed 2022-10-09 14:38:11 -07:00
1 parent b47c623438
commit d42ce7e2c5
1 file changed
+2 -2
+2 -2
View File
@@ -662,7 +662,7 @@ publishing {
}
}
if (modrinthProjectId.size() != 0) {
if (modrinthProjectId.size() != 0 && System.getenv("MODRINTH_TOKEN") != null) {
apply plugin: 'com.modrinth.minotaur'
File changelogFile = new File("CHANGELOG.md")
@@ -695,7 +695,7 @@ if (modrinthProjectId.size() != 0) {
tasks.publish.dependsOn(tasks.modrinth)
}
if (curseForgeProjectId.size() != 0) {
if (curseForgeProjectId.size() != 0 && System.getenv("CURSEFORGE_TOKEN") != null) {
apply plugin: 'com.matthewprenger.cursegradle'
File changelogFile = new File("CHANGELOG.md")