From 15b894ce92238d99576226e30219c3ef64f3bb14 Mon Sep 17 00:00:00 2001 From: Mresyzz Date: Wed, 30 Sep 2026 21:46:00 +0800 Subject: [PATCH] release: prepare v0.5.1 package and action metadata --- CHANGELOG.md | 6 ++++++ README.md | 11 ++++++----- README.zh-CN.md | 6 +++--- action.yml | 2 +- docs/configuration.md | 4 ++-- examples/github-actions/README.md | 2 +- examples/github-actions/workflow.yml | 2 +- pyproject.toml | 4 ++-- src/opsscript_gate/__init__.py | 2 +- src/opsscript_gate/config.py | 2 +- 10 files changed, 24 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 291b751..b3f0bc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [0.5.1] - 2026-09-30 + +### Changed +- Published the current README and examples with the v0.5.1 Action tag. +- Updated package and Action metadata to describe the supported container matrix and runtime compatibility check. + ## [0.5.0] - 2026-09-24 ### Added diff --git a/README.md b/README.md index 2b937d9..50e4d68 100644 --- a/README.md +++ b/README.md @@ -19,10 +19,11 @@ It is designed for shell testing, portable shell validation, Bash/POSIX compatib --- -## v0.5.0 +## Current release: v0.5.1 -Version 0.5 adds a project config file, a dry-run plan, presets, exclusions, and saved -reports. Projects on v0.4.1 and earlier do not include these options. +The current release includes a project config file, a dry-run plan, presets, exclusions, +and saved reports. These controls were introduced in v0.5.0; projects on v0.4.1 and +earlier do not include them. ```bash opsscript-gate init @@ -58,7 +59,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 - - uses: Mresyzz/opsscript-gate@v0.5.0 + - uses: Mresyzz/opsscript-gate@v0.5.1 ``` If `script-path` is omitted, the action discovers shell scripts in the repository. @@ -67,7 +68,7 @@ Use `opsscript-gate run --dry-run` to inspect the selection before running it. Or test a specific script with custom execution modes: ```yaml - - uses: Mresyzz/opsscript-gate@v0.5.0 + - uses: Mresyzz/opsscript-gate@v0.5.1 with: script-path: scripts/install.sh shell: auto diff --git a/README.zh-CN.md b/README.zh-CN.md index 2d0a160..0ecd67f 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -8,9 +8,9 @@ Bash 依赖、包管理器假设和交互式阻塞。它与 ShellCheck 互补。 适合独立安装脚本、容器入口脚本和发布脚本。每次只挂载目标脚本, 不挂载整个仓库;依赖其他仓库文件的脚本需要现有项目测试配合。 -## 试用本次 v0.5.0 更新 +## 当前版本 v0.5.1 -v0.5.0 已作为正式版本发布;如果你要从源码验证当前分支,也可以执行: +v0.5.1 已作为正式版本发布;如果你要从源码验证当前分支,也可以执行: ```bash pip install -e . @@ -25,7 +25,7 @@ opsscript-gate run --dry-run opsscript-gate run --format json --output reports/compatibility.json ``` -`init` 生成配置和 GitHub 工作流,不覆盖已有文件。工作流引用 `v0.5.0`。 +`init` 生成配置和 GitHub 工作流,不覆盖已有文件。工作流引用 `v0.5.1`。 预览不需要 Docker;真实运行需要 Python 3.10+ 和可访问的 Linux Docker 引擎。 diff --git a/action.yml b/action.yml index e518a6b..c8a8331 100644 --- a/action.yml +++ b/action.yml @@ -1,5 +1,5 @@ name: 'OpsScript Gate' -description: 'Run Linux shell scripts across Debian, Ubuntu and Alpine before release to catch runtime compatibility failures' +description: 'Run Linux shell scripts in Debian, Ubuntu and Alpine containers to catch runtime compatibility failures before merge' author: 'Mresyzz' branding: icon: 'shield' diff --git a/docs/configuration.md b/docs/configuration.md index 54d876b..d7427b5 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -11,7 +11,7 @@ opsscript-gate run --dry-run ``` `init` refuses to overwrite either `.opsscript-gate.json` or -`.github/workflows/opsscript-gate.yml`. The generated workflow uses the v0.5.0 tag. +`.github/workflows/opsscript-gate.yml`. The generated workflow uses the v0.5.1 tag. The generated config uses the two-image `minimal` preset, honors recognized shell shebangs, disables networking, and excludes `tests/*` and `examples/*`. Review these @@ -90,7 +90,7 @@ The Action accepts matching `config`, `preset`, `max-scripts`, `dry-run`, and `o inputs; `exclude` is a multiline list. Omitted execution inputs preserve config values. ```yaml -- uses: Mresyzz/opsscript-gate@v0.5.0 +- uses: Mresyzz/opsscript-gate@v0.5.1 with: config: .opsscript-gate.json format: json diff --git a/examples/github-actions/README.md b/examples/github-actions/README.md index 14a4e4f..151fa52 100644 --- a/examples/github-actions/README.md +++ b/examples/github-actions/README.md @@ -2,4 +2,4 @@ This example shows a GitHub Actions workflow for checking a shell script on pull requests. -Copy `workflow.yml` into your repository at `.github/workflows/script-gate.yml` and point `script-path` to the script you want to validate. The example uses the current v0.5.0 Action release. +Copy `workflow.yml` into your repository at `.github/workflows/script-gate.yml` and point `script-path` to the script you want to validate. The example uses the current v0.5.1 Action release. diff --git a/examples/github-actions/workflow.yml b/examples/github-actions/workflow.yml index dba529f..0512362 100644 --- a/examples/github-actions/workflow.yml +++ b/examples/github-actions/workflow.yml @@ -19,7 +19,7 @@ jobs: persist-credentials: false - name: Run OpsScript Gate - uses: Mresyzz/opsscript-gate@v0.5.0 + uses: Mresyzz/opsscript-gate@v0.5.1 with: script-path: 'scripts/deploy.sh' shell: auto diff --git a/pyproject.toml b/pyproject.toml index 021c8f8..ad4a3b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,8 +4,8 @@ build-backend = "hatchling.build" [project] name = "opsscript-gate" -version = "0.5.0" -description = "Run Linux shell scripts across Debian, Ubuntu and Alpine before release to catch runtime compatibility failures" +version = "0.5.1" +description = "Run Linux shell scripts in Debian, Ubuntu and Alpine containers to catch runtime compatibility failures before merge" readme = "README.md" license = { text = "MIT" } requires-python = ">=3.10" diff --git a/src/opsscript_gate/__init__.py b/src/opsscript_gate/__init__.py index d4400c4..c34536c 100644 --- a/src/opsscript_gate/__init__.py +++ b/src/opsscript_gate/__init__.py @@ -1,4 +1,4 @@ """OpsScript Gate: Lightweight cross-distro compatibility pre-check for Linux ops scripts.""" -__version__ = "0.5.0" +__version__ = "0.5.1" __all__ = ["__version__"] diff --git a/src/opsscript_gate/config.py b/src/opsscript_gate/config.py index 0abd990..a5f47ed 100644 --- a/src/opsscript_gate/config.py +++ b/src/opsscript_gate/config.py @@ -63,7 +63,7 @@ def init_project() -> list[str]: - uses: actions/checkout@v7 with: persist-credentials: false - - uses: Mresyzz/opsscript-gate@v0.5.0 + - uses: Mresyzz/opsscript-gate@v0.5.1 with: config: .opsscript-gate.json """,