Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yokawasa/action-setup-ecctl
A GitHub action that install a specific version of ecctl (Elastic Cloud control tool) and cache it on the runner. Please [✩Star] if you're using it!
https://github.com/yokawasa/action-setup-ecctl
ecctl elasticcloud elasticsearch github-action github-actions
Last synced: about 2 months ago
JSON representation
A GitHub action that install a specific version of ecctl (Elastic Cloud control tool) and cache it on the runner. Please [✩Star] if you're using it!
- Host: GitHub
- URL: https://github.com/yokawasa/action-setup-ecctl
- Owner: yokawasa
- License: mit
- Created: 2020-06-21T08:53:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-06-18T06:17:57.000Z (6 months ago)
- Last Synced: 2024-09-23T17:47:08.263Z (3 months ago)
- Topics: ecctl, elasticcloud, elasticsearch, github-action, github-actions
- Language: TypeScript
- Homepage:
- Size: 1.69 MB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-actions - Setup Elastic Cloud Control Tool - Install a specific version of ecctl on the runner. (Community Resources / Utility)
- fucking-awesome-actions - Setup Elastic Cloud Control Tool - Install a specific version of ecctl on the runner. (Community Resources / Utility)
- awesome-workflows - Setup Elastic Cloud Control Tool - Install a specific version of ecctl on the runner. (Community Resources / Utility)
README
# action-setup-ecctl
A GitHub action that install a specific version of [ecctl](https://github.com/elastic/ecctl) (Elastic Cloud control tool) and cache it on the runner
## Usage
### Inputs
|Parameter|Required|Default Value|Description|
|:--:|:--:|:--:|:--|
|`version`|`false`|`latest`|Ecctl tool version such as `v1.3.1`. Ecctl vesion can be found [here](https://github.com/elastic/ecctl/releases).|> Supported Environments: Linux and macOS
### Outputs
|Parameter|Description|
|:--:|:--|
|`ecctl-path`| ecctl command path |### Sample Workflow
A specific version of ecctl can be setup by giving an input - `version` like this:
```yaml
- uses: yokawasa/[email protected]
with:
version: 'v1.3.1' # default is 'latest'
id: setup
- run: |
ecctl version
```The latest version of ecctl will be setup if you don't give an input like this:
```yaml
- uses: yokawasa/[email protected]
id: setup
- run: |
ecctl version
```## Developing the action
Install the dependencies
```bash
npm install
```Build the typescript and package it for distribution by running [ncc](https://github.com/vercel/ncc)
```bash
npm run build && npm run format && npm run lint && npm run pack
```Finally push the resutls
```
git add dist
git commit -a -m "prod dependencies"
git push origin releases/v0.4.1
```## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/yokawasa/action-setup-ecctl
## Changelog
Please see the [list of releases](https://github.com/yokawasa/action-setup-ecctl/releases) for information on changes between releases.