Skip to content

Commit 93cadcf

Browse files
authored
agentplane: publish 0.4.2
Publish setup-agentplane action for AgentPlane 0.4.2.
2 parents 5fef3d6 + 0538983 commit 93cadcf

2 files changed

Lines changed: 45 additions & 103 deletions

File tree

README.md

Lines changed: 18 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,37 @@
11
# setup-agentplane
22

3-
<p>
4-
<a href="https://github.com/basilisk-labs/setup-agentplane/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/basilisk-labs/setup-agentplane/actions/workflows/ci.yml/badge.svg" /></a>
5-
<img alt="release" src="https://img.shields.io/github/v/release/basilisk-labs/setup-agentplane?sort=semver" />
6-
<img alt="release date" src="https://img.shields.io/github/release-date/basilisk-labs/setup-agentplane" />
7-
</p>
3+
[![CI](https://github.com/basilisk-labs/setup-agentplane/actions/workflows/ci.yml/badge.svg)](https://github.com/basilisk-labs/setup-agentplane/actions/workflows/ci.yml)
4+
![release](https://img.shields.io/github/v/release/basilisk-labs/setup-agentplane?sort=semver)
5+
![release-channel](https://img.shields.io/github/release-date/basilisk-labs/setup-agentplane)
86

9-
**Topics:** `agentplane` `github-actions` `cli` `installer`
10-
11-
`setup-agentplane` is the fastest and most reliable way to add AgentPlane to CI.
12-
13-
It saves you from manual binary downloads, checksum errors, and cross-platform conditionals.
14-
If your pipeline already uses GitHub Actions, this action gives a deterministic install step and a built-in smoke check.
15-
16-
## Why this exists
17-
18-
- Reproducible installs across runners and OSes.
19-
- Fast onboarding for repositories that already follow agentic workflows.
20-
- Reduced boilerplate in CI recipes.
21-
- Predictable rollback by pinning exact versions.
22-
23-
## How it works
24-
25-
The action downloads the requested standalone AgentPlane artifact, checks SHA-256 against `SHA256SUMS` (when available), extracts it, and adds `agentplane` to PATH.
26-
27-
## Usage
7+
Install AgentPlane in GitHub Actions.
288

299
```yaml
30-
- uses: basilisk-labs/setup-agentplane@v0
10+
- uses: basilisk-labs/setup-agentplane@v0.4.2
3111
with:
32-
version: 0.4.1
12+
version: 0.4.2
3313
```
3414
35-
Use `@v0` for automatic patch/minor refresh behavior, and pin to a concrete version when strict reproducibility is required.
36-
37-
## Inputs
38-
39-
| Name | Default | Description |
40-
| --- | --- | --- |
41-
| `version` | `0.4.1` | AgentPlane semver to install (for example `0.4.1`). |
42-
| `verify` | `true` | Run `agentplane --version` after installation. |
15+
This composite action installs AgentPlane from the official standalone archives and validates each standalone bundled-runtime archive checksum before adding `agentplane` to PATH.
4316

44-
## Outputs
17+
## Capabilities
4518

46-
This action intentionally has no outputs.
19+
- Deterministic install by release asset pin (run uses release asset URL)
20+
- Cross-platform: macOS/Linux/Windows
21+
- Smoke check with agentplane --version
22+
- Explicit version control (no floating tags needed)
4723

4824
## Quick start
4925

5026
```yaml
51-
name: ci
52-
on: [push]
53-
54-
jobs:
55-
install:
56-
runs-on: ubuntu-latest
57-
steps:
58-
- uses: actions/checkout@v4
59-
- name: Install AgentPlane
60-
uses: basilisk-labs/setup-agentplane@v0
61-
with:
62-
version: 0.4.1
63-
verify: true
64-
65-
- name: Validate
66-
run: |
67-
agentplane --version
68-
agentplane quickstart
27+
steps:
28+
- uses: basilisk-labs/setup-agentplane@v0.4.2
29+
with:
30+
version: 0.4.2
6931
```
7032

71-
## Security note
72-
73-
Pin versions for immutable environments and keep `verify: true` in production.
74-
75-
## Next step
76-
77-
After installation run:
33+
## Smoke check
7834

7935
```bash
80-
agentplane quickstart
36+
agentplane --version
8137
```
82-
83-
to generate repository-level guidance and align contributors quickly.
84-
85-
## License
86-
87-
This action repository is MIT-licensed.

action.yml

Lines changed: 27 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,66 @@
11
name: setup-agentplane
2-
description: Install and verify the AgentPlane CLI in GitHub Actions.
3-
author: 'Basilisk Labs'
4-
branding:
5-
icon: terminal
6-
color: purple
7-
permissions:
8-
contents: read
2+
description: Install the AgentPlane CLI in GitHub Actions.
93
inputs:
104
version:
11-
description: AgentPlane version to install. Use a plain semver value such as 0.4.1.
5+
description: AgentPlane version to install. Use a plain semver value such as 0.4.2.
126
required: false
13-
default: '0.4.1'
7+
default: "0.4.2"
148
verify:
159
description: Run an agentplane --version smoke check after installation.
1610
required: false
17-
default: 'true'
11+
default: "true"
1812
runs:
1913
using: composite
2014
steps:
2115
- name: Install AgentPlane
2216
shell: bash
2317
run: |
2418
set -euo pipefail
25-
version="${{ inputs.version }}"
19+
version="${inputs.version}"
2620
version="${version#v}"
27-
tag="v${version}"
28-
repo="basilisk-labs/agentplane"
2921
tmp_dir="$(mktemp -d)"
3022
trap 'rm -rf "$tmp_dir"' EXIT INT TERM
31-
32-
case "$RUNNER_OS-$RUNNER_ARCH" in
23+
case "${RUNNER_OS}-${RUNNER_ARCH}" in
3324
macOS-ARM64)
34-
asset_url="https://github.com/${repo}/releases/download/${tag}/agentplane-${tag}-darwin-arm64.tar.gz"
25+
asset_url="https://github.com/basilisk-labs/agentplane/releases/download/v0.4.2/agentplane-v0.4.2-darwin-arm64.tar.gz"
26+
asset_sha256="8bc19b2a29a48a350d283153156644e8128cd05e49cd1a02513659a5aa95759b"
3527
;;
3628
macOS-X64)
37-
asset_url="https://github.com/${repo}/releases/download/${tag}/agentplane-${tag}-darwin-x64.tar.gz"
29+
asset_url="https://github.com/basilisk-labs/agentplane/releases/download/v0.4.2/agentplane-v0.4.2-darwin-x64.tar.gz"
30+
asset_sha256="a538cc7d91ff55fbf2c1dbc969782500d8a5c5ed1e0b9a50e2530616957f2083"
3831
;;
3932
Linux-ARM64)
40-
asset_url="https://github.com/${repo}/releases/download/${tag}/agentplane-${tag}-linux-arm64.tar.gz"
33+
asset_url="https://github.com/basilisk-labs/agentplane/releases/download/v0.4.2/agentplane-v0.4.2-linux-arm64.tar.gz"
34+
asset_sha256="ea322de9be2b17142f1401da550a94f2bb90ee875638d6421a509c2f00b5fa46"
4135
;;
4236
Linux-X64)
43-
asset_url="https://github.com/${repo}/releases/download/${tag}/agentplane-${tag}-linux-x64.tar.gz"
37+
asset_url="https://github.com/basilisk-labs/agentplane/releases/download/v0.4.2/agentplane-v0.4.2-linux-x64.tar.gz"
38+
asset_sha256="0482e411160f07ee703d75efa35d9e520a6a22cf9c3fac95025381b5d70a7c09"
4439
;;
4540
Windows-X64)
46-
asset_url="https://github.com/${repo}/releases/download/${tag}/agentplane-${tag}-win32-x64.zip"
41+
asset_url="https://github.com/basilisk-labs/agentplane/releases/download/v0.4.2/agentplane-v0.4.2-win32-x64.zip"
42+
asset_sha256="2050625d6c9032020decc1805c02d9f25a4a9b8b5ec3434a12bbaa37532df5cd"
4743
;;
4844
*)
4945
echo "Unsupported runner: ${RUNNER_OS}-${RUNNER_ARCH}" >&2
5046
exit 2
5147
;;
5248
esac
53-
54-
archive="$tmp_dir/asset"
55-
asset_name="${asset_url##*/}"
56-
install_dir="$tmp_dir/agentplane"
57-
mkdir -p "$install_dir"
58-
curl -fsSL --retry 3 --retry-all-errors "${asset_url}" -o "${archive}"
59-
sums_url="https://github.com/${repo}/releases/download/${tag}/SHA256SUMS"
60-
expected_sha="$(curl -fsSL --retry 3 --retry-all-errors "${sums_url}" | awk -v name="$asset_name" '$2 == name { print $1 }')"
61-
actual_sha="$(sha256sum "${archive}" | awk '{print $1}')"
62-
if [ -n "${expected_sha}" ] && [ "${actual_sha}" != "${expected_sha}" ]; then
63-
echo "Checksum mismatch for ${asset_name}" >&2
49+
archive="${tmp_dir}/${asset_url##*/}"
50+
install_dir="${tmp_dir}/agentplane"
51+
mkdir -p "${install_dir}"
52+
curl -fsSL "${asset_url}" -o "${archive}"
53+
actual_sha256="$(shasum -a 256 "${archive}" | awk '{print $1}')"
54+
if [ "${actual_sha256}" != "${asset_sha256}" ]; then
55+
echo "agentplane archive checksum mismatch" >&2
6456
exit 2
6557
fi
66-
if [[ "$archive" == *.zip ]]; then
58+
if [[ "${archive}" == *.zip ]]; then
6759
powershell -NoProfile -Command "Expand-Archive -LiteralPath '${archive}' -DestinationPath '${install_dir}' -Force"
6860
else
69-
tar -xzf "$archive" -C "$install_dir"
61+
tar -xzf "${archive}" -C "${install_dir}"
7062
fi
71-
echo "$install_dir/bin" >> "$GITHUB_PATH"
63+
echo "${install_dir}/bin" >> "$GITHUB_PATH"
7264
if [ "${{ inputs.verify }}" = "true" ]; then
73-
"$install_dir/bin/agentplane" --version | grep -Fx "$version"
65+
"${install_dir}/bin/agentplane" --version | grep -Fx "${version}"
7466
fi

0 commit comments

Comments
 (0)