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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ Bash 依赖、包管理器假设和交互式阻塞。它与 ShellCheck 互补。
适合独立安装脚本、容器入口脚本和发布脚本。每次只挂载目标脚本,
不挂载整个仓库;依赖其他仓库文件的脚本需要现有项目测试配合。

## 试用本次 v0.5.0 更新
## 当前版本 v0.5.1

v0.5.0 已作为正式版本发布;如果你要从源码验证当前分支,也可以执行:
v0.5.1 已作为正式版本发布;如果你要从源码验证当前分支,也可以执行:

```bash
pip install -e .
Expand All @@ -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 引擎。

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
4 changes: 2 additions & 2 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/github-actions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion examples/github-actions/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/opsscript_gate/__init__.py
Original file line number Diff line number Diff line change
@@ -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__"]
2 changes: 1 addition & 1 deletion src/opsscript_gate/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
""",
Expand Down
Loading