Set up your GitHub Actions workflow with the same CLI tool.
This action downloads and installs the same binary from GitHub releases,
caches it for improved performance, and makes it available in your workflow's
PATH.
Install the latest version of same with minimal configuration:
- name: Setup same
uses: traiproject/setup-same@v1
- name: Use same
run: same --versionInstall a specific version of same (with or without the 'v' prefix):
- name: Setup same v0.1.0
uses: traiproject/setup-same@v1
with:
version: "v0.1.0"
- name: Setup same 0.1.0
uses: traiproject/setup-same@v1
with:
version: "0.1.0"For private repositories or to avoid rate limits:
- name: Setup same with custom token
uses: traiproject/setup-same@v1
with:
version: "latest"
github-token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}| Input | Description | Required | Default |
|---|---|---|---|
version |
Version of same to install (latest or version tag like v1.0.0) |
No | latest |
github-token |
GitHub token for API requests | No | ${{ github.token }} |
| Output | Description |
|---|---|
version |
The installed version of same |
cache-hit |
Boolean indicating if the binary was retrieved from cache |
##Platform Support
- Linux: Ubuntu, Debian, and other Linux distributions
- macOS: Intel (x86_64) and Apple Silicon (ARM64) Macs
- Not supported: Windows
Supported architectures: x86_64, arm64
This action caches the downloaded binary between workflow runs to improve performance. The cache key is based on the OS, architecture, and version.
MIT