From 0380812d711d21b36f0bf7b910dd7820e24bcd80 Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Fri, 21 Jun 2024 17:33:37 +0530 Subject: [PATCH] upgrade starship-action to use the latest versions --- .github/workflows/test.yaml | 9 +++++++++ README.md | 6 ++---- action.yaml | 20 ++++++-------------- 3 files changed, 17 insertions(+), 18 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 9487b6f..e08e48a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -19,6 +19,9 @@ jobs: - name: Create yaml file run: | cat < config.yaml + name: osmo-wasm + version: v0.2.6 + chains: - id: osmosis-1 name: osmosis @@ -114,6 +117,9 @@ jobs: - name: Create yaml file run: | cat < config.yaml + name: osmois + version: v0.2.6 + chains: - id: osmosis-1 name: osmosis @@ -156,6 +162,9 @@ jobs: - name: Create yaml file run: | cat < config.yaml + name: osmosis + version: v0.2.6 + chains: - id: osmosis-1 name: osmosis diff --git a/README.md b/README.md index afe9da6..cf12133 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,7 @@ For more information, reference the GitHub Help Documentation for [Creating a wo For more information on inputs, see the [API Documentation](https://developer.github.com/v3/repos/releases/#input) - `config`: Required, config file for helm chart for starship devnet inputs -- `version`: Optional, version of devnet helm chart from starship (default: `0.2.3`) -- `cli-version`: Optional, version of @starship-ci/cli to use (default: `2.4.0`) +- `cli-version`: Optional, version of @starship-ci/cli to use (default: `2.8.0`) - `kubeconfig`: Optional, Kubeconfig for remote cluster, if set, will be used instead of creating local kind cluster - `namespace`: Optional, Kubernetes namespace to which helm charts will be deployed. If not found, namespace will be created. (default: `ci-${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}`) - `repo`: Optional, Helm repo to fetch the chart from (default: https://cosmology-tech.github.io/starship) @@ -44,8 +43,7 @@ jobs: - uses: actions/checkout@v4 - name: Create starship devnet for osmos and wasm - uses: cosmology-tech/starship-action@v0.4.4 + uses: cosmology-tech/starship-action@v0.5.4 with: config: ./starship-config.yaml - version: v0.2.3 # helm chart version ``` diff --git a/action.yaml b/action.yaml index dafdc60..5643893 100644 --- a/action.yaml +++ b/action.yaml @@ -8,14 +8,10 @@ inputs: config: description: "Path to the config file" required: true - version: - description: "Version of devnet chart (default: v0.2.3)" - required: false - default: "v0.2.5" cli-version: - description: "Version of @starship-ci/cli to use: default: 2.3.0" + description: "Version of @starship-ci/cli to use: default: 2.8.1" required: false - default: "2.7.0" + default: "2.8.1" kubeconfig: description: "Kubeconfig file for remote cluster, if set, will be used instead of creating kind cluster" required: false @@ -129,9 +125,8 @@ runs: - name: Setup starship helm repo run: | starship setup \ + --config ${{ inputs.config }} \ --helmName ${{ inputs.name }} \ - --helmVersion ${{ inputs.version }} \ - --helmFile ${{ inputs.config }} \ --helmNamespace ${{ steps.set-namespace.outputs.namespace }} \ --helmChart ${{ inputs.chart }} shell: bash @@ -143,9 +138,8 @@ runs: helm delete ${{ inputs.name }} --debug --namespace ${{ steps.set-namespace.outputs.namespace }} --wait || true sleep 5 starship start \ + --config ${{ inputs.config }} \ --helmName ${{ inputs.name }} \ - --helmVersion ${{ inputs.version }} \ - --helmFile ${{ inputs.config }} \ --helmNamespace ${{ steps.set-namespace.outputs.namespace }} \ --helmChart ${{ inputs.chart }} shell: bash @@ -174,9 +168,8 @@ runs: sleep 5 kubectl get pods --namespace ${{ steps.set-namespace.outputs.namespace }} starship start \ + --config ${{ inputs.config }} \ --helmName ${{ inputs.name }} \ - --helmVersion ${{ inputs.version }} \ - --helmFile ${{ inputs.config }} \ --helmNamespace ${{ steps.set-namespace.outputs.namespace }} \ --helmChart ${{ inputs.chart }} shell: bash @@ -189,9 +182,8 @@ runs: sleep 5 kubectl get pods --namespace ${{ steps.set-namespace.outputs.namespace }} starship start \ + --config ${{ inputs.config }} \ --helmName ${{ inputs.name }} \ - --helmVersion ${{ inputs.version }} \ - --helmFile ${{ inputs.config }} \ --helmNamespace ${{ steps.set-namespace.outputs.namespace }} \ --helmChart ${{ inputs.chart }} shell: bash