Skip to content

Commit

Permalink
feature: add timeout as input (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 authored Oct 3, 2024
1 parent 615428c commit aa50139
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ For more information on inputs, see the [API Documentation](https://developer.gi
- `repo`: Optional, Helm repo to fetch the chart from (default: https://cosmology-tech.github.io/starship)
- `name`: Optional, Release name for the helm chart deployment (default: `starship-devnet`)
- `chart`: Optional, Name of the help chart to use. Recommended: use default (default: `starship/devnet`)
- `timeout`: Optional, Timeout for helm install (default: `10m`)

### Outputs
- `namespace`: Namespace where the devnet is deployed
Expand All @@ -43,7 +44,7 @@ jobs:
- uses: actions/checkout@v4

- name: Create starship devnet for osmos and wasm
uses: cosmology-tech/[email protected].4
uses: cosmology-tech/[email protected].6
with:
config: ./starship-config.yaml
```
17 changes: 12 additions & 5 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ inputs:
description: "Path to the config file"
required: true
cli-version:
description: "Version of @starship-ci/cli to use: default: 2.9.0"
description: "Version of @starship-ci/cli to use: default: 2.10.2"
required: false
default: "2.9.0"
default: "2.10.2"
kubeconfig:
description: "Kubeconfig file for remote cluster, if set, will be used instead of creating kind cluster"
required: false
Expand All @@ -32,6 +32,10 @@ inputs:
description: "Kubernetes namespace to deploy helm charts on (default: ci-{github.repository}-{github.workflow}-{github.ref} )"
required: false
default: ""
timeout:
description: "Timeout for helm install (default: 10m)"
required: false
default: "10m"

outputs:
namespace:
Expand Down Expand Up @@ -141,7 +145,8 @@ runs:
--config ${{ inputs.config }} \
--name ${{ inputs.name }} \
--namespace ${{ steps.set-namespace.outputs.namespace }} \
--chart ${{ inputs.chart }}
--chart ${{ inputs.chart }} \
--timeout ${{ inputs.timeout }}
shell: bash

- name: Logs
Expand Down Expand Up @@ -172,7 +177,8 @@ runs:
--config ${{ inputs.config }} \
--name ${{ inputs.name }} \
--namespace ${{ steps.set-namespace.outputs.namespace }} \
--chart ${{ inputs.chart }}
--chart ${{ inputs.chart }} \
--timeout ${{ inputs.timeout }}
shell: bash

- name: Helm install again, 3rd time is the charm
Expand All @@ -186,5 +192,6 @@ runs:
--config ${{ inputs.config }} \
--name ${{ inputs.name }} \
--namespace ${{ steps.set-namespace.outputs.namespace }} \
--chart ${{ inputs.chart }}
--chart ${{ inputs.chart }} \
--timeout ${{ inputs.timeout }}
shell: bash

0 comments on commit aa50139

Please sign in to comment.