|
1 | 1 | import com.github.sbt.osgi.SbtOsgi |
2 | 2 | import com.github.sbt.osgi.SbtOsgi.autoImport._ |
3 | 3 | import com.typesafe.tools.mima.core._ |
| 4 | +import Common.autoImport._ |
4 | 5 |
|
5 | 6 | ThisBuild / scalaVersion := Version.scala212 |
6 | 7 | ThisBuild / crossScalaVersions := Seq(Version.scala213, Version.scala212, Version.scala3) |
@@ -159,11 +160,18 @@ def versionedImport(packageName: String, lower: String, upper: String) = s"""$pa |
159 | 160 | addCommandAlias("validateCode", "headerCheckAll ; scalafmtSbtCheck ; scalafmtCheckAll") |
160 | 161 |
|
161 | 162 | ThisBuild / githubWorkflowBuild := Seq( |
162 | | - WorkflowStep.Sbt(List("validateCode", "test", "doc", "mimaReportBinaryIssues")), |
163 | | - WorkflowStep.Run(List("./scripts/validate-docs.sh"), cond = Some("matrix.java != 'temurin@8'")), |
| 163 | + WorkflowStep.Sbt( |
| 164 | + List("validateCode", "test", "doc", "mimaReportBinaryIssues"), |
| 165 | + cond = Some(s"github.repository == '${githubOrg}/${githubRepo}'") |
| 166 | + ), |
| 167 | + WorkflowStep.Run( |
| 168 | + List("./scripts/validate-docs.sh"), |
| 169 | + cond = Some(s"matrix.java != 'temurin@8' && github.repository == '${githubOrg}/${githubRepo}'") |
| 170 | + ), |
164 | 171 | ) |
165 | 172 |
|
166 | 173 | ThisBuild / githubWorkflowTargetTags ++= Seq("v*") |
| 174 | +ThisBuild / githubWorkflowPublishCond := Some(s"github.repository == '${githubOrg}/${githubRepo}'") |
167 | 175 | ThisBuild / githubWorkflowPublishTargetBranches := |
168 | 176 | Seq( |
169 | 177 | RefPredicate.StartsWith(Ref.Tag("v")), |
|
0 commit comments