Skip to content

feat(action): install and cache OpenAPI Generator CLI from JAR#7

Merged
remarkablemark merged 4 commits intomasterfrom
feat/action
Apr 1, 2026
Merged

feat(action): install and cache OpenAPI Generator CLI from JAR#7
remarkablemark merged 4 commits intomasterfrom
feat/action

Conversation

@remarkablemark
Copy link
Copy Markdown
Owner

@remarkablemark remarkablemark commented Apr 1, 2026

What is the motivation for this pull request?

Replace the npm-based OpenAPI Generator install path with a direct JAR-based setup and automate future version updates for the action.

What is the current behavior?

The action installs OpenAPI Generator through npm, version bumps to the pinned default are manual, and there is no scheduled workflow to open update PRs when a new OpenAPI Generator CLI release is available.

What is the new behavior?

The action now installs and caches the OpenAPI Generator CLI JAR directly, sets up Java inside the action, and preserves the openapi-generator-cli command wrapper.

A Python updater script fetches the latest OpenAPI Generator CLI version from Maven metadata and updates action.yml plus README.md.

A scheduled GitHub Actions workflow runs the updater daily, pushes a version-bump branch, and opens a PR when a new version is available.

The repo also ignores Python __pycache__ directories.

Checklist:

- Replace the npm-based install with a cached JAR download
- Set up Java inside the action and preserve the `openapi-generator-cli` wrapper
- add a Python script to fetch the latest OpenAPI Generator CLI version from Maven metadata
- update action.yml and README.md with the latest pinned version
- Add a scheduled workflow to update the pinned OpenAPI Generator CLI version
- Expose current and latest versions from the Python updater to the workflow
- Create and push a version bump branch and open a PR when a new version is available
@remarkablemark remarkablemark changed the title build: automate OpenAPI Generator version updates feat(action): install and cache OpenAPI Generator CLI from JAR Apr 1, 2026
@remarkablemark remarkablemark self-assigned this Apr 1, 2026
@remarkablemark remarkablemark added the enhancement New feature or request label Apr 1, 2026
@remarkablemark remarkablemark merged commit d759b44 into master Apr 1, 2026
10 checks passed
@remarkablemark remarkablemark deleted the feat/action branch April 1, 2026 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant