Skip to content

ci: auto-detect latest release branch for docs publishing#197

Merged
Roming22 merged 2 commits into
redhat-appstudio:mainfrom
gtrivedi88:ci/auto-detect-release-branch
May 6, 2026
Merged

ci: auto-detect latest release branch for docs publishing#197
Roming22 merged 2 commits into
redhat-appstudio:mainfrom
gtrivedi88:ci/auto-detect-release-branch

Conversation

@gtrivedi88

Copy link
Copy Markdown
Contributor

Summary

  • Replaces the DOCS_RELEASE_BRANCH repository variable with automatic semver detection
  • The tag job now queries all release-* branches via git ls-remote and picks the highest version
  • No manual variable update needed when cutting new releases

Follow-up to #182 per @Roming22's feedback.

How it works

LATEST_BRANCH="release-$(git ls-remote --heads origin 'refs/heads/release-*' \
  | sed 's|.*refs/heads/release-||' \
  | sort -t. -k1,1n -k2,2n \
  | tail -1)"

When release-0.2 is cut, pushes to release-0.1 automatically stop publishing — no repo settings change needed.

After merge

The DOCS_RELEASE_BRANCH repository variable can be removed from Settings → Secrets and variables → Actions → Variables (if it was set).

Test plan

  • Push to release-0.1 → tag job detects it as latest → tags and deploys
  • When release-0.2 exists, push to release-0.1 → tag job skips (0.2 is latest)

🤖 Generated with Claude Code

Replace the DOCS_RELEASE_BRANCH repository variable with automatic
semver detection. The tag job now queries all release-* branches and
picks the highest version, so no manual variable update is needed
when cutting new releases.

Follow-up to redhat-appstudio#182.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gtrivedi88 gtrivedi88 requested a review from Roming22 May 6, 2026 14:21
Add a comprehensive README.md in the docs/ directory covering:
- Branch model and contributing workflow
- How to get changes onto the live site (backport to release branch)
- Detailed explanation of the three CI jobs (tag, build, deploy)
- Local build instructions
- Directory structure with file descriptions
- AsciiDoc attributes reference
- How to add new pages
- Antora-specific notes for contributors

Requested by Romain in the PR redhat-appstudio#182 discussion.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gtrivedi88 gtrivedi88 force-pushed the ci/auto-detect-release-branch branch from 37e1841 to dd0566a Compare May 6, 2026 14:26
@Roming22 Roming22 merged commit 14fb2a3 into redhat-appstudio:main May 6, 2026
5 of 6 checks passed
@konflux-ci-qe-bot

Copy link
Copy Markdown

@gtrivedi88: The following matrix E2E test has Failed, say /retest to rerun failed tests.

Total child pipelines: 2
Failed child pipelines: 2

Failed child pipelines

PipelineRun Name Status Rerun command Build Log Test Log
tsf-e2e-4.20-8zw58 Failed /retest View Pipeline Log View Test Logs
tsf-e2e-4.21-qf24s Failed /retest View Pipeline Log View Test Logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants