Skip to content

Commit

Permalink
Fixed versioning for snapshot release type
Browse files Browse the repository at this point in the history
  • Loading branch information
tgreenwood committed Apr 2, 2024
1 parent 4794ba6 commit 67bba5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/package_and_push_helm_chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- dev
- release
- devops/FAIRSPC-23_deployment
workflow_dispatch:
inputs:
name:
Expand Down Expand Up @@ -37,7 +38,7 @@ jobs:
- name: Prepare version
run: |
VERSION=$(cat ./VERSION)
if [[ ${{ github.event.inputs.environment }} = "SNAPSHOT" ]] || [[ $BRANCH = "dev" ]]; then
if [[ ${{ github.event.inputs.release_type }} = "SNAPSHOT" ]] || [[ $BRANCH = "dev" ]]; then
VERSION=$VERSION-SNAPSHOT
fi
echo "VERSION=$VERSION" >> $GITHUB_ENV
Expand Down

0 comments on commit 67bba5e

Please sign in to comment.