Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nhudson committed Dec 11, 2023
1 parent 74e087e commit e2d638f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/helm-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,22 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
path: 'code'

- name: Fetch main branch
run: |
cd code
git fetch origin main
git fetch origin main:main
- name: Check chart version
run: |
cd code
CURR_VERSION=$(cat charts/tembo-operator/Chart.yaml | grep version: | cut -d ' ' -f 2)
MAIN_VERSION=$(git show main:charts/tembo-operator/Chart.yaml | grep version: | cut -d ' ' -f 2)
echo -n "Current version: ${CURR_VERSION}"
echo -n "Previous version: ${MAIN_VERSION}"
if [ "$CURR_VERSION" = "$MAIN_VERSION" ]; then
echo "Helm chart version needs to be bumped!"
exit 1
Expand Down

0 comments on commit e2d638f

Please sign in to comment.