Add revision support

This commit is contained in:
Ashcon Partovi 2023-09-11 12:33:33 -07:00
parent 5254461333
commit dc4f4e07fd
5 changed files with 62 additions and 65 deletions

View file

@ -4,50 +4,22 @@ Download, install, and setup [Bun](https://bun.sh) in GitHub Actions.
## Usage
### Latest release
```yaml
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
```
### Specific release
## Inputs
```yaml
- uses: oven-sh/setup-bun@v1
with:
bun-version: "0.5.6"
```
| Name | Description | Default | Examples |
| ------------- | ------------------------------------------- | -------- | -------------------------- |
| `bun-version` | The version of Bun to download and install. | `latest` | `canary`, `1.0.0`, `<sha>` |
### Canary release
## Outputs
```yaml
- uses: oven-sh/setup-bun@v1
with:
bun-version: canary
```
### Specific canary release
```yaml
- uses: oven-sh/setup-bun@v1
with:
bun-version: 9be68ac2350b965037f408ce4d47c3b9d9a76b63
```
### Action run
```yaml
- uses: oven-sh/setup-bun@v1
with:
bun-version: "action:4308768069"
```
### Custom download URL
```yaml
- uses: oven-sh/setup-bun@v1
with:
bun-download-url: https://example.com/path/to/bun.zip
```
| Name | Description | Example |
| -------------- | ------------------------------------------ | ------------------------------------------------ |
| `cache-hit` | If the Bun executable was read from cache. | `true` |
| `bun-version` | The output from `bun --version`. | `1.0.0` |
| `bun-revision` | The output from `bun --revision`. | `1.0.0+822a00c4d508b54f650933a73ca5f4a3af9a7983` |