Skip to content

👷‍♀️ Add CI job to auto-bump protocol version on push to main - #1569

Merged
gwennlbh merged 3 commits into
mainfrom
copilot/add-ci-job-check-yaml-modification
May 6, 2026
Merged

👷‍♀️ Add CI job to auto-bump protocol version on push to main#1569
gwennlbh merged 3 commits into
mainfrom
copilot/add-ci-job-check-yaml-modification

Conversation

Copilot AI commented May 6, 2026

Copy link
Copy Markdown
Contributor

When a protocols/*.yaml file is modified without incrementing its version field, the CI should detect this and auto-bump the version before the commit lands on main.

New workflow: bump-protocol-version.yml

  • Triggers on push to main filtered to protocols/*.yaml paths
  • For each changed protocol file, compares the version: integer from HEAD^ vs HEAD
  • If unchanged, increments it in-place with sed and commits via stefanzweifel/git-auto-commit-action@v7
  • Uses AUTOCOMMITS_DEPLOY_KEY deploy key to push directly to main (same pattern as format.yml)
  • Commit message: 🔖 Bump protocol version [ci skip] — gitmoji-compliant, loop-safe
  • Skips newly added files (no prior version) and deleted files gracefully
Original prompt

add a ci job that checks if a protocol/*.yaml file was modified. if the file is modified but the version field was not bumped, bump it and commit the change to CI. Respect gitmoji conventions when naming the commit. Use the deploy key in order to be able to push to main directly. See the format.yml workflow for an example of a similar auto-commit workflow

[Wed May 6 09:13:50 UTC 2026] Downloading the Android app preview from Diawi:

QR code

https://i.diawi.com/Xqe9Qq

Agent-Logs-Url: https://github.com/cigaleapp/cigale/sessions/24306cdc-6bf7-45ff-ac6d-2129da52796e

Co-authored-by: gwennlbh <39094199+gwennlbh@users.noreply.github.com>
Copilot AI changed the title [WIP] Add CI job to check protocol.yaml modification and bump version May 6, 2026
Copilot AI requested a review from gwennlbh May 6, 2026 08:56
@gwennlbh
gwennlbh marked this pull request as ready for review May 6, 2026 09:09
@gwennlbh gwennlbh changed the title Add CI job to auto-bump protocol version on push to main May 6, 2026
@gwennlbh
gwennlbh merged commit 9775784 into main May 6, 2026
10 checks passed
@gwennlbh
gwennlbh deleted the copilot/add-ci-job-check-yaml-modification branch May 6, 2026 09:09
renovate Bot added a commit that referenced this pull request Aug 3, 2026
##### [vv7.0.0](https://github.com/actions/setup-node/releases/tag/v7.0.0)

##### What's Changed

##### Enhancements:

- Add cache-primary-key and cache-matched-key as outputs by [@gowridurgad](https://github.com/gowridurgad) in [#1577](actions/setup-node#1577)
- Migrate to ESM and upgrade dependencies by [@gowridurgad](https://github.com/gowridurgad) in [#1574](actions/setup-node#1574)

##### Bug fixes:

- Remove dummy NODE\_AUTH\_TOKEN export by [@gowridurgad](https://github.com/gowridurgad) in [#1558](actions/setup-node#1558)
- Only use `mirrorToken` in `getManifest` if it's provided by [@deiga](https://github.com/deiga) in [#1548](actions/setup-node#1548)

##### Documentation updates:

- Add documentation for publishing to npm with Trusted Publisher (OIDC) by [@chiranjib-swain](https://github.com/chiranjib-swain) in [#1536](actions/setup-node#1536)
- docs: Update restore-only cache documentation by [@priya-kinthali](https://github.com/priya-kinthali) in [#1550](actions/setup-node#1550)
- docs: Update caching recommendations to mitigate cache poisoning risks by [@chiranjib-swain](https://github.com/chiranjib-swain) in [#1567](actions/setup-node#1567)

##### Dependency update:

- Upgrade [@actions/cache](https://github.com/actions/cache) to 5.1.0, log cache write denied by [@jasongin](https://github.com/jasongin) in [#1569](actions/setup-node#1569)

##### New Contributors

- [@chiranjib-swain](https://github.com/chiranjib-swain) made their first contribution in [#1536](actions/setup-node#1536)
- [@deiga](https://github.com/deiga) made their first contribution in [#1548](actions/setup-node#1548)
- [@jasongin](https://github.com/jasongin) made their first contribution in [#1569](actions/setup-node#1569)

**Full Changelog**: <actions/setup-node@v6...v7.0.0>
##### [vv7](actions/setup-node@v6.5.0...v7.0.0)
gwennlbh pushed a commit that referenced this pull request Aug 3, 2026
##### [vv7.0.0](https://github.com/actions/setup-node/releases/tag/v7.0.0)

##### What's Changed

##### Enhancements:

- Add cache-primary-key and cache-matched-key as outputs by [@gowridurgad](https://github.com/gowridurgad) in [#1577](actions/setup-node#1577)
- Migrate to ESM and upgrade dependencies by [@gowridurgad](https://github.com/gowridurgad) in [#1574](actions/setup-node#1574)

##### Bug fixes:

- Remove dummy NODE\_AUTH\_TOKEN export by [@gowridurgad](https://github.com/gowridurgad) in [#1558](actions/setup-node#1558)
- Only use `mirrorToken` in `getManifest` if it's provided by [@deiga](https://github.com/deiga) in [#1548](actions/setup-node#1548)

##### Documentation updates:

- Add documentation for publishing to npm with Trusted Publisher (OIDC) by [@chiranjib-swain](https://github.com/chiranjib-swain) in [#1536](actions/setup-node#1536)
- docs: Update restore-only cache documentation by [@priya-kinthali](https://github.com/priya-kinthali) in [#1550](actions/setup-node#1550)
- docs: Update caching recommendations to mitigate cache poisoning risks by [@chiranjib-swain](https://github.com/chiranjib-swain) in [#1567](actions/setup-node#1567)

##### Dependency update:

- Upgrade [@actions/cache](https://github.com/actions/cache) to 5.1.0, log cache write denied by [@jasongin](https://github.com/jasongin) in [#1569](actions/setup-node#1569)

##### New Contributors

- [@chiranjib-swain](https://github.com/chiranjib-swain) made their first contribution in [#1536](actions/setup-node#1536)
- [@deiga](https://github.com/deiga) made their first contribution in [#1548](actions/setup-node#1548)
- [@jasongin](https://github.com/jasongin) made their first contribution in [#1569](actions/setup-node#1569)

**Full Changelog**: <actions/setup-node@v6...v7.0.0>
##### [vv7](actions/setup-node@v6.5.0...v7.0.0)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants