Skip to content

Commit 60a23bf

Browse files
committed
Bump version to v0.2.1: Fix deprecated Runtime.exec API warning
1 parent 65069ab commit 60a23bf

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
# Runner for GitHub Actions Changelog
44

5+
## [0.2.1] - 2026-02-02
6+
### Fixed
7+
- Replaced deprecated `Runtime.exec(String)` with `GeneralCommandLine` for better compatibility and more robust command parsing in "Custom Browser Command".
8+
59
## [0.2.0] - 2026-02-02
610

711
> ⚠️ **Breaking Change**: This version introduces a new "Profile" system. Your previous configuration will be reset. Please reconfigure your profiles in **Settings > Tools > Runner for GitHub Actions**.

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pluginGroup = com.github.foyoux.githubactionrunner
44
pluginName = Runner for GitHub Actions
55
pluginRepositoryUrl = https://github.com/foyoux/github-action-runner
66
# SemVer format -> https://semver.org
7-
pluginVersion = 0.2.0
7+
pluginVersion = 0.2.1
88

99
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
1010
pluginSinceBuild = 252

src/main/kotlin/com/github/foyoux/githubactionrunner/actions/RunScriptAction.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,12 @@ abstract class RunScriptAction : AnAction() {
180180
if (effectiveProfile.browserCommand.isNotBlank()) {
181181
try {
182182
val cmd = effectiveProfile.browserCommand.replace("%URL%", mainUrl)
183-
@Suppress("DEPRECATION")
184-
Runtime.getRuntime().exec(cmd)
183+
val commandList = com.intellij.util.execution.ParametersListUtil.parse(cmd)
184+
if (commandList.isNotEmpty()) {
185+
com.intellij.execution.configurations.GeneralCommandLine(commandList).createProcess()
186+
} else {
187+
BrowserUtil.browse(mainUrl)
188+
}
185189
} catch (e: Exception) {
186190
BrowserUtil.browse(mainUrl) // Fallback
187191
}

0 commit comments

Comments
 (0)