Skip to content

Commit a458308

Browse files
committed
Remove README update workflow and update tags
Eliminate the GitHub workflow for automatic README updates and adjust the README files to reflect the new version tag. This change streamlines the process by removing redundant steps and ensures explicit control over version increments.
1 parent c2ec4cb commit a458308

File tree

5 files changed

+8
-49
lines changed

5 files changed

+8
-49
lines changed

.github/workflows/update-readme.yaml

-42
This file was deleted.

cursor/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Uses the [Coder Remote VS Code Extension](https://github.com/coder/cursor-coder)
1616
```tf
1717
module "cursor" {
1818
source = "registry.coder.com/modules/cursor/coder"
19-
version = "1.0.18"
19+
version = "1.0.19"
2020
agent_id = coder_agent.example.id
2121
}
2222
```
@@ -28,7 +28,7 @@ module "cursor" {
2828
```tf
2929
module "cursor" {
3030
source = "registry.coder.com/modules/cursor/coder"
31-
version = "1.0.18"
31+
version = "1.0.19"
3232
agent_id = coder_agent.example.id
3333
folder = "/home/coder/project"
3434
}

jupyter-notebook/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A module that adds Jupyter Notebook in your Coder template.
1616
```tf
1717
module "jupyter-notebook" {
1818
source = "registry.coder.com/modules/jupyter-notebook/coder"
19-
version = "1.0.8"
19+
version = "1.0.19"
2020
agent_id = coder_agent.example.id
2121
}
2222
```

jupyterlab/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A module that adds JupyterLab in your Coder template.
1616
```tf
1717
module "jupyterlab" {
1818
source = "registry.coder.com/modules/jupyterlab/coder"
19-
version = "1.0.8"
19+
version = "1.0.19"
2020
agent_id = coder_agent.example.id
2121
}
2222
```

update-version.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
set -euo pipefail
88

99
current_tag=$(git describe --tags --abbrev=0)
10-
previous_tag=$(git describe --tags --abbrev=0 $current_tag^)
11-
mapfile -t changed_dirs < <(git diff --name-only "$previous_tag"..."$current_tag" -- ':!**/README.md' ':!**/*.test.ts' | xargs dirname | grep -v '^\.' | sort -u)
1210

13-
LATEST_TAG=$(git describe --abbrev=0 --tags | sed 's/^v//') || exit $?
11+
# Increment the patch version
12+
LATEST_TAG=$(echo "$current_tag" | sed 's/^v//' | awk -F. '{print $1"."$2"."$3+1}') || exit $?
13+
14+
mapfile -t changed_dirs < <(git diff --name-only "$current_tag" -- ':!**/README.md' ':!**/*.test.ts' | xargs dirname | grep -v '^\.' | sort -u)
1415

1516
for dir in "${changed_dirs[@]}"; do
1617
if [[ -f "$dir/README.md" ]]; then

0 commit comments

Comments
 (0)