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
2 changes: 1 addition & 1 deletion .github/workflow-templates/opsscript-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
persist-credentials: false

- name: Run OpsScript Gate
uses: Mresyzz/opsscript-gate@v0.9.2
uses: Mresyzz/opsscript-gate@v0.9.4
with:
shell: auto
network: none
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ apt-get --version
Run it locally with `opsscript-gate run ./install.sh`, or add the following step to CI:

```yaml
- uses: Mresyzz/opsscript-gate@v0.9.2
- uses: Mresyzz/opsscript-gate@v0.9.4
with:
script-path: install.sh
```
Expand All @@ -57,7 +57,7 @@ The result identifies the failing distribution, exit code, line, missing command

---

## Current version: v0.9.2 (local candidate)
## Current release: v0.9.4

The current release includes a project config file, a dry-run plan, presets, exclusions,
saved reports, changed-script selection for pull requests, and repeat runs for detecting
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: Mresyzz/opsscript-gate@v0.9.2
- uses: Mresyzz/opsscript-gate@v0.9.4
```

This zero-configuration form discovers shell scripts in the repository. Use
Expand All @@ -122,7 +122,7 @@ repository has a single installer. For self-hosted model installers, see the
Or test a specific script with custom execution modes:

```yaml
- uses: Mresyzz/opsscript-gate@v0.9.2
- uses: Mresyzz/opsscript-gate@v0.9.4
with:
script-path: scripts/install.sh
shell: auto
Expand Down Expand Up @@ -156,7 +156,7 @@ unrelated scripts:
with:
persist-credentials: false
fetch-depth: 0
- uses: Mresyzz/opsscript-gate@v0.9.2
- uses: Mresyzz/opsscript-gate@v0.9.4
with:
changed-since: ${{ github.event.pull_request.base.sha }}
preset: minimal
Expand Down Expand Up @@ -247,7 +247,7 @@ Use `sarif` when the result should appear in GitHub Code Scanning or another
SARIF-compatible viewer. Upload it explicitly with the official upload action:

```yaml
- uses: Mresyzz/opsscript-gate@v0.9.2
- uses: Mresyzz/opsscript-gate@v0.9.4
with:
script-path: scripts/install.sh
format: sarif
Expand Down
8 changes: 4 additions & 4 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ Bash 依赖、包管理器假设和交互式阻塞。它与 ShellCheck 互补。

也可以直接打开 [OpsScript Gate 在线演示](https://mresyzz.github.io/opsscript-gate/),先查看 ShellCheck 与运行时验证的差异,再复制 workflow 到自己的仓库。

## 当前版本 v0.9.2
## 当前版本 v0.9.4

v0.9.2 是当前本地候选版本;如果你要从源码验证当前分支,也可以执行:
v0.9.4 是当前已发布版本;如果你要从源码验证当前分支,也可以执行:

```bash
pip install -e .
Expand All @@ -35,7 +35,7 @@ opsscript-gate run --dry-run
opsscript-gate run --format json --output reports/compatibility.json
```

`init` 生成配置和 GitHub 工作流,不覆盖已有文件。工作流引用 `v0.9.2`。
`init` 生成配置和 GitHub 工作流,不覆盖已有文件。工作流引用 `v0.9.4`。
预览不需要 Docker;真实运行需要 Python 3.10+
和可访问的 Linux Docker 引擎。
`opsscript-gate doctor` 可以在真实运行前检查 Python 和 Docker。
Expand Down Expand Up @@ -74,7 +74,7 @@ Docker daemon 和可选的项目配置。
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: Mresyzz/opsscript-gate@v0.9.2
- uses: Mresyzz/opsscript-gate@v0.9.4
with:
changed-since: ${{ github.event.pull_request.base.sha }}
preset: minimal
Expand Down
8 changes: 4 additions & 4 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
OpsScript Gate
</span>
<span class="font-mono text-[11px] px-1.5 py-0.5 rounded bg-[var(--surface-muted)] text-[var(--text-muted)] border border-[var(--border-light)]">
v0.9.2
v0.9.4
</span>
</div>
</div>
Expand Down Expand Up @@ -391,7 +391,7 @@ <h2 class="font-serif text-xl text-[var(--text-hero)] font-medium">
<div class="panel-card p-4 flex flex-col justify-between space-y-3">
<div class="space-y-2.5">
<div class="flex items-center justify-between border-b border-[var(--border-light)] pb-2">
<span class="font-mono text-xs font-medium text-[var(--text-muted)]">OpsScript Gate Runtime (v0.9.2)</span>
<span class="font-mono text-xs font-medium text-[var(--text-muted)]">OpsScript Gate Runtime (v0.9.4)</span>
<span id="ops-status" class="font-mono text-xs font-semibold px-2 py-0.5 rounded border">
1 DISTRO FAILED
</span>
Expand Down Expand Up @@ -560,7 +560,7 @@ <h3 class="font-serif text-xl text-[var(--text-hero)] font-medium">
<span class="font-semibold text-[var(--text-hero)]">steps:</span>
- <span class="font-semibold text-[var(--text-hero)]">uses:</span> actions/checkout@v4
- <span class="font-semibold text-[var(--text-hero)]">name:</span> Validate scripts across distributions
<span class="font-semibold text-[var(--brand)]">uses:</span> Mresyzz/opsscript-gate@v0.9.2
<span class="font-semibold text-[var(--brand)]">uses:</span> Mresyzz/opsscript-gate@v0.9.4
<span class="font-semibold text-[var(--text-hero)]">with:</span>
<span class="text-[var(--text-body)]">script-path:</span> ./install.sh
<span class="text-[var(--text-body)]">shell:</span> auto
Expand Down Expand Up @@ -628,7 +628,7 @@ <h3 class="font-serif text-2xl sm:text-3xl text-[var(--text-hero)] font-normal t
steps:
- uses: actions/checkout@v4
- name: Validate scripts across distributions
uses: Mresyzz/opsscript-gate@v0.9.2
uses: Mresyzz/opsscript-gate@v0.9.4
with:
script-path: ./install.sh
shell: auto
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 targets the local v0.9.2 candidate; change the tag to a published release before using it from another repository.
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 published v0.9.4 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.9.2
uses: Mresyzz/opsscript-gate@v0.9.4
with:
script-path: 'scripts/deploy.sh'
shell: auto
Expand Down
Loading