Skip to content

Commit

Permalink
fix(workflow): use correct condtional expression
Browse files Browse the repository at this point in the history
Signed-off-by: daemon1024 <[email protected]>
  • Loading branch information
daemon1024 committed Jul 30, 2024
1 parent 42386bf commit 04e50a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
tag:
description: "Release tag which has to be updated"
type: "string"
requried: true
required: true

jobs:
build-and-publish:
Expand All @@ -24,14 +24,14 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Update Chart.yaml
if: ${{ github.event_name }} == "workflow_dispatch"
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
STABLE_VERSION=${{ inputs.tag }}
sed -i -e "s/appVersion:.*/appVersion: $STABLE_VERSION/g" deployments/helm/*/Chart.yaml
sed -i -e "s/version:.*/version: $STABLE_VERSION/g" deployments/helm/*/Chart.yaml
- name: Update Chart.yaml
if: ${{ github.event_name }} == "release"
if: ${{ github.event_name == 'release' }}
run: |
STABLE_VERSION=${{ github.event.release.tag_name }}
sed -i -e "s/appVersion:.*/appVersion: $STABLE_VERSION/g" deployments/helm/*/Chart.yaml
Expand Down

0 comments on commit 04e50a0

Please sign in to comment.