From df5d8a0f466f7a36f539b04b3ba9ba960747fd49 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Wed, 14 Feb 2024 16:30:52 +0300 Subject: [PATCH] Update module versions --- filebrowser/README.md | 6 +++--- git-commit-signing/README.md | 2 +- jetbrains-gateway/README.md | 4 ++-- update-version.sh | 11 ++--------- vscode-web/README.md | 4 ++-- 5 files changed, 10 insertions(+), 17 deletions(-) diff --git a/filebrowser/README.md b/filebrowser/README.md index e783588..781e122 100644 --- a/filebrowser/README.md +++ b/filebrowser/README.md @@ -14,7 +14,7 @@ A file browser for your workspace. ```tf module "filebrowser" { source = "registry.coder.com/modules/filebrowser/coder" - version = "1.0.2" + version = "1.0.3" agent_id = coder_agent.example.id } ``` @@ -28,7 +28,7 @@ module "filebrowser" { ```tf module "filebrowser" { source = "registry.coder.com/modules/filebrowser/coder" - version = "1.0.2" + version = "1.0.3" agent_id = coder_agent.example.id folder = "/home/coder/project" } @@ -39,7 +39,7 @@ module "filebrowser" { ```tf module "filebrowser" { source = "registry.coder.com/modules/filebrowser/coder" - version = "1.0.2" + version = "1.0.3" agent_id = coder_agent.example.id database_path = ".config/filebrowser.db" } diff --git a/git-commit-signing/README.md b/git-commit-signing/README.md index b3e3b67..ada6110 100644 --- a/git-commit-signing/README.md +++ b/git-commit-signing/README.md @@ -19,7 +19,7 @@ This module has a chance of conflicting with the user's dotfiles / the personali ```tf module "git-commit-signing" { source = "registry.coder.com/modules/git-commit-signing/coder" - version = "1.0.2" + version = "1.0.3" agent_id = coder_agent.example.id } ``` diff --git a/jetbrains-gateway/README.md b/jetbrains-gateway/README.md index a176fc9..629f850 100644 --- a/jetbrains-gateway/README.md +++ b/jetbrains-gateway/README.md @@ -14,7 +14,7 @@ This module adds a JetBrains Gateway Button to open any workspace with a single ```tf module "jetbrains_gateway" { source = "registry.coder.com/modules/jetbrains-gateway/coder" - version = "1.0.2" + version = "1.0.3" agent_id = coder_agent.example.id agent_name = "example" folder = "/home/coder/example" @@ -32,7 +32,7 @@ module "jetbrains_gateway" { ```tf module "jetbrains_gateway" { source = "registry.coder.com/modules/jetbrains-gateway/coder" - version = "1.0.2" + version = "1.0.3" agent_id = coder_agent.example.id agent_name = "example" folder = "/home/coder/example" diff --git a/update-version.sh b/update-version.sh index 433f614..5deb63b 100755 --- a/update-version.sh +++ b/update-version.sh @@ -8,14 +8,7 @@ set -euo pipefail current_tag=$(git describe --tags --abbrev=0) previous_tag=$(git describe --tags --abbrev=0 $current_tag^) -mapfile -t changed_files < <(git diff --name-only "$previous_tag" "$current_tag" | xargs dirname | sort -u | grep -v '^\.') - -changed_dirs=() -for file in $changed_files; do - dir=$(dirname "$file") - changed_dirs+=("$dir") -done -changed_dirs=($(printf "%s\n" "${changed_dirs[@]}" | sort -u)) +mapfile -t changed_dirs < <(git diff --name-only "$previous_tag"..."$current_tag" -- ':!**/README.md' ':!**/*.test.ts' | xargs dirname | grep -v '^\.' | sort -u) LATEST_TAG=$(git describe --abbrev=0 --tags | sed 's/^v//') || exit $? @@ -33,4 +26,4 @@ for dir in "${changed_dirs[@]}"; do } }' "$file" > "$tmpfile" && mv "$tmpfile" "$file" fi -done \ No newline at end of file +done diff --git a/vscode-web/README.md b/vscode-web/README.md index 55b12ef..cfc092c 100644 --- a/vscode-web/README.md +++ b/vscode-web/README.md @@ -14,7 +14,7 @@ Automatically install [Visual Studio Code Server](https://code.visualstudio.com/ ```tf module "vscode-web" { source = "registry.coder.com/modules/vscode-web/coder" - version = "1.0.2" + version = "1.0.3" agent_id = coder_agent.example.id accept_license = true } @@ -29,7 +29,7 @@ module "vscode-web" { ```tf module "vscode-web" { source = "registry.coder.com/modules/vscode-web/coder" - version = "1.0.2" + version = "1.0.3" agent_id = coder_agent.example.id install_dir = "/home/coder/.vscode-web" folder = "/home/coder"