Commit c72167b
docs(openapi): auto-bump OpenAPI version on merge to master when spec changes (#2289)
### Description
Adds a GitHub Actions workflow that automatically bumps the
`info.version` field in the OpenAPI specification whenever `apify-api/`
files are changed and merged to master.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Low risk: documentation/spec and CI automation only, with the main
risk being noisy extra commits or workflow misfires on `master` pushes
affecting repo history.
>
> **Overview**
> Adds a GitHub Actions workflow (`bump-openapi-version.yaml`) that, on
pushes to `master` affecting `apify-api/**`, overwrites
`apify-api/openapi/components/version.yaml` with a fresh UTC timestamp
and commits it back to the repo.
>
> Updates `apify-api/openapi/openapi.yaml` to source `info.version` from
the new `components/version.yaml` via `$ref`, so the published OpenAPI
spec version tracks these automated bumps.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
5d6f5c8. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent bf86dd8 commit c72167b
3 files changed
Lines changed: 32 additions & 1 deletion
File tree
- .github/workflows
- apify-api/openapi
- components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
477 | | - | |
| 477 | + | |
| 478 | + | |
478 | 479 | | |
479 | 480 | | |
480 | 481 | | |
| |||
0 commit comments