Skip to content

Commit

Permalink
Changed user to repository_owner and tuned version calculating
Browse files Browse the repository at this point in the history
  • Loading branch information
tgreenwood committed Apr 3, 2024
1 parent 81ca8be commit 4d54a20
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .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 @@ -33,15 +34,20 @@ jobs:
- name: Prepare version
run: |
VERSION=$(cat ./VERSION)
echo "Helm charts version to be deployed (preliminary-0): $VERSION"
BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
if [ $BRANCH != "release" ]
then
echo "Building images from the branch: $BRANCH"
if [ $BRANCH != "release" ]; then
VERSION=$VERSION-SNAPSHOT
fi
echo "Helm charts version to be deployed (preliminary): $VERSION"
# override version of custom input is provided
if [ "${{ github.event.inputs.version != '' }}" ]; then
echo "${{ github.event.inputs.version != '' }}"
if [[ -n "${{ github.event.inputs.version }}" }}" ]]; then
echo "Overriding version with input"
VERSION=${{ github.event.inputs.version }}
fi
echo "Helm charts version to be deployed: $VERSION"
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Push Helm chart to repository
Expand Down

0 comments on commit 4d54a20

Please sign in to comment.