Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/release-bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ on:
- npm/playground
- npm/cuabot
- lume
- cua-driver
- docker/cuabot
- docker/kasm
- docker/xfce
Expand Down Expand Up @@ -130,6 +131,10 @@ jobs:
echo "directory=libs/lume" >> $GITHUB_OUTPUT
echo "type=lume" >> $GITHUB_OUTPUT
;;
"cua-driver")
echo "directory=libs/cua-driver" >> $GITHUB_OUTPUT
echo "type=cua-driver" >> $GITHUB_OUTPUT
;;
"docker/cuabot")
echo "directory=libs/cuabot" >> $GITHUB_OUTPUT
echo "type=docker" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -380,6 +385,14 @@ jobs:
echo "lume version: $VERSION"
echo "version=$VERSION" >> "$GITHUB_OUTPUT"

- name: Capture bumped cua-driver version
if: ${{ inputs.service == 'cua-driver' }}
id: cua_driver_version
run: |
VERSION=$(grep -oP 'public static let version = "\K[^"]+' libs/cua-driver/Sources/CuaDriverCore/CuaDriverCore.swift)
echo "cua-driver version: $VERSION"
echo "version=$VERSION" >> "$GITHUB_OUTPUT"

- name: Capture bumped cuabot version
if: ${{ inputs.service == 'npm/cuabot' }}
id: cuabot_version
Expand Down
10 changes: 10 additions & 0 deletions libs/cua-driver/.bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[bumpversion]
current_version = 0.0.1
commit = True
tag = True
tag_name = cua-driver-v{new_version}
message = Bump cua-driver to v{new_version}

[bumpversion:file:Sources/CuaDriverCore/CuaDriverCore.swift]
search = public static let version = "{current_version}"
replace = public static let version = "{new_version}"
Loading