Merge pull request #309 from ryanjbaxter/publish-antora-docs

Use test actions repo
This commit is contained in:
Ryan Baxter
2024-06-19 16:20:32 -04:00
committed by GitHub
2 changed files with 7 additions and 3 deletions

View File

@@ -102,8 +102,8 @@ releaser:
bom-name: spring-cloud
# fixed-versions:
antora:
spring-docs-actions-url: https://github.com/spring-io/spring-doc-actions
spring-docs-actions-tag: v0.0.16
spring-docs-actions-url: https://github.com/ryanjbaxter/spring-doc-actions
# spring-docs-actions-tag: v0.0.16
sync-antora-docs-command: "./spring-docs-action-runner.sh --docs-username {{ssh-username}} --docs-ssh-key-path {{ssh-key-path}} --docs-host docs-ip.spring.io --docs-ssh-host-key {{host-key}} --site-path {{site-path}} --github-repository {{github-repo}}"
meta-release:
enabled: false

View File

@@ -136,7 +136,11 @@ public class ProjectGitHandler implements Closeable {
public File cloneAndCheckoutSpringDocsActions() {
File project = cloneProject(this.properties.getAntora().getSpringDocsActionsUrl());
checkoutTag(project, this.properties.getAntora().getSpringDocsActionsTag());
String tag = this.properties.getAntora().getSpringDocsActionsTag();
if (StringUtils.hasText(tag)) {
log.info("Checking out tag [{}] for project [{}]", tag, project.getAbsolutePath());
checkoutTag(project, this.properties.getAntora().getSpringDocsActionsTag());
}
return project;
}