Skip to content

Commit

Permalink
chore: improve workflows (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrmr33 authored Jun 19, 2024
1 parent a7ea3bc commit ebb88b3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/bump-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,22 @@ on:
description: 'The new chart version'
required: true
type: string
skip-version-validation:
description: 'Should skip chart version validation'
required: true
default: false
type: boolean
workflow_call:
inputs:
chart-version:
description: 'The new chart version'
required: true
type: string
skip-version-validation:
description: 'Should skip chart version validation'
required: true
default: false
type: boolean
secrets:
token:
description: 'The github token to use to create the PR'
Expand All @@ -23,6 +33,17 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: azure/[email protected]
with:
version: v3.12.1

- name: Validate version
if: ${{ !inputs.skip-version-validation }}
run: |
if [[ $(helm search repo spot/ocean-kubernetes-controller --version ${{ inputs.chart-version }}) == "No results found" ]]; then
echo "Chart version ${{ inputs.chart-version }} not found in the repository"
exit 1
fi
- name: Update version
uses: actions/github-script@v7
Expand Down

0 comments on commit ebb88b3

Please sign in to comment.