Skip to content

Commit

Permalink
Add missing username input (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
reakaleek authored Jun 6, 2024
1 parent bb9e724 commit 9a8ac45
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
13 changes: 7 additions & 6 deletions oblt-cli/cluster-destroy/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# <!--name-->Oblt-cli destroy cluster<!--/name-->
# <!--name-->oblt/cli/cluster-destroy<!--/name-->
<!--description-->
Run the oblt-cli wrapper to destroy the given cluster
<!--/description-->

## Inputs
<!--inputs-->
| Name | Description | Required | Default |
|---------------------|---------------------------------------|----------|---------|
| `cluster-name` | The cluster name | `false` | ` ` |
| `cluster-info-file` | The cluster info file (absolute path) | `false` | ` ` |
| `github-token` | The GitHub access token. | `true` | ` ` |
| Name | Description | Required | Default |
|---------------------|---------------------------------------------------------------------|----------|---------------|
| `cluster-name` | The cluster name | `false` | ` ` |
| `cluster-info-file` | The cluster info file (absolute path) | `false` | ` ` |
| `github-token` | The GitHub access token. | `true` | ` ` |
| `username` | Username to show in the deployments with oblt-cli, format: [a-z0-9] | `false` | `obltmachine` |
<!--/inputs-->

## Usage
Expand Down
7 changes: 5 additions & 2 deletions oblt-cli/cluster-destroy/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Oblt-cli destroy cluster'
name: oblt/cli/cluster-destroy
description: 'Run the oblt-cli wrapper to destroy the given cluster'
inputs:
cluster-name:
Expand All @@ -10,6 +10,10 @@ inputs:
github-token:
description: 'The GitHub access token.'
required: true
username:
description: 'Username to show in the deployments with oblt-cli, format: [a-z0-9]'
default: 'obltmachine'
required: false
runs:
using: "composite"
steps:
Expand All @@ -22,7 +26,6 @@ runs:
- uses: elastic/oblt-actions/oblt-cli/setup@v1.2.0
with:
github-token: ${{ inputs.github-token }}
slack-channel: ${{ inputs.slack-channel }}
username: ${{ inputs.username }}
- run: |
oblt-cli cluster destroy --cluster-name "${{ steps.validation.outputs.cluster-name }}" --force
Expand Down

0 comments on commit 9a8ac45

Please sign in to comment.