Skip to content

Commit e0c377a

Browse files
authored
chore(updatecli) Synchronize .ruby-version with updatecli and document version files (#8521)
* Synchronize .ruby-version with updatecli and document version files - Add setRubyVersionFile target to updatecli/updatecli.d/ruby.yaml to track .ruby-version - Update PR title to include .ruby-version in the automated bump - Document .ruby-version and .node-version files in CONTRIBUTING.adoc Fixes #8515 (PR 1) * Fix .ruby-version matchpattern to exclude newline characters Use '^[^\r\n]+' instead of '.*' to match only the version string without the trailing newline, preventing duplicate lines in the file. * Remove matchpattern/replacepattern as suggested by contributor Following the contributor's suggestion, removed matchpattern and replacepattern to let updatecli use its default behavior for single-line version files. This should prevent duplicate lines issue shown in the dry run. * Fix .ruby-version matchpattern to prevent duplicate lines Use specific pattern to match version number only * Remove matchpattern/replacepattern from .ruby-version target Use updatecli default behavior for simple file replacement
1 parent 4c00af7 commit e0c377a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CONTRIBUTING.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ Ensure you have GNU/Make and Curl and Docker available on your machine:
8787

8888
Docker must be version 17.04 or greater.
8989

90+
NOTE: This project requires specific Ruby and Node.js versions as specified in `.ruby-version` and `.node-version` files respectively.
91+
These versions are automatically managed by Updatecli and kept in sync with the CI environment.
92+
9093
[[make-targets]]
9194
=== `make` Targets
9295

updatecli/updatecli.d/ruby.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,19 @@ targets:
5656
matchpattern: 'CONTAINER_NAME=ruby:.*'
5757
replacepattern: 'CONTAINER_NAME=ruby:{{ source "getRubyVersionFromPackerImages" }}'
5858
scmid: default
59+
setRubyVersionFile:
60+
name: "Bump Ruby version in .ruby-version"
61+
kind: file
62+
sourceid: getRubyVersionFromPackerImages
63+
spec:
64+
file: .ruby-version
65+
scmid: default
5966

6067
actions:
6168
default:
6269
kind: github/pullrequest
6370
scmid: default
64-
title: Bump Ruby Image version in scripts/ruby to {{ source "getRubyVersionFromPackerImages" }} the same as the packer-image in production
71+
title: Bump Ruby version in scripts/ruby and .ruby-version to {{ source "getRubyVersionFromPackerImages" }} the same as the packer-image in production
6572
spec:
6673
labels:
6774
- dependencies

0 commit comments

Comments
 (0)