https://github.com/mfinelli/setup-shfmt
github action to install shfmt
https://github.com/mfinelli/setup-shfmt
github-actions shfmt
Last synced: 6 months ago
JSON representation
github action to install shfmt
- Host: GitHub
- URL: https://github.com/mfinelli/setup-shfmt
- Owner: mfinelli
- License: apache-2.0
- Created: 2021-09-06T16:05:55.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2025-04-03T18:09:25.000Z (6 months ago)
- Last Synced: 2025-04-04T03:34:25.038Z (6 months ago)
- Topics: github-actions, shfmt
- Language: TypeScript
- Homepage: https://github.com/marketplace/actions/setup-shfmt
- Size: 1.09 MB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# setup-shfmt
This action downloads [shfmt](https://github.com/mvdan/sh) binary and adds it
to the PATH.## Inputs
| Name | Type | Description |
| --------------- | ------ | ---------------------------------------- |
| `shfmt-version` | String | The version to use or `latest` (default) |## Outputs
## Example usage
To use the latest `shfmt`:
```yaml
steps:
- uses: mfinelli/setup-shfmt@v3
- run: shfmt -d script.bash
```Or with a specific version:
```yaml
steps:
- uses: mfinelli/setup-shfmt@v3
with:
shfmt-version: 3.3.1
- run: shfmt -d script.bash
```