7 Commits

Author SHA1 Message Date
David Karlsson
0166d42316 Merge pull request #24101 from vvoland/cli-docs-closed
gha/sync-cli-docs: Ignore explicitly closed versions
2026-02-23 06:41:30 +01:00
Paweł Gronowski
aabd3f9a5e gha/sync-cli-docs: Ignore explicitly closed versions
Avoid repeatedly opening new PRs for the same CLI version when a
previous one was intentionally closed.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-02-09 13:58:47 +01:00
Paweł Gronowski
2ceaa973a1 gha/sync-cli-docs: Update after 29.2.0
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-01-27 14:07:40 +01:00
Paweł Gronowski
1b1b173e43 gha/sync-cli-docs: Update existing PR instead of creating new ones
Actually we don't need to create a separate PR per each update and we
can just modify the previous one if it wasn't merged yet.

Change the workflow to use a fixed branch name and update existing PRs
when newer CLI versions are available, rather than creating multiple
PRs.

The workflow now uses a consistent branch name "bot/sync-cli-docs"
instead of timestamp-based names.

When an existing PR from this branch is found, it force-pushes the new
changes and updates the PR title and body with the latest CLI version
information.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-01-05 14:54:29 +01:00
Paweł Gronowski
2c6076186f gha/sync-cli-docs: Only trigger on relevant PRs
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-01-05 12:48:23 +01:00
Paweł Gronowski
72d3e14405 gha/sync-cli-docs: Detect existing PR
Add deduplication logic to prevent multiple PRs for the same CLI version
and enhance PR management.

When an existing PR is found, the workflow adds a bump comment instead
of creating a duplicate.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-01-05 12:48:23 +01:00
Paweł Gronowski
c3652459f9 ci: Add automated CLI documentation sync workflow
This adds a GitHub Actions workflow and supporting script to
automatically sync CLI documentation from the docker/cli repository on a
daily schedule.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2025-12-18 21:21:54 +01:00