Skip to content

Commit

Permalink
Only suffix sha if not main
Browse files Browse the repository at this point in the history
  • Loading branch information
frankh committed Jul 17, 2023
1 parent 1efb59c commit aad601d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
push:
branches:
- main
paths:
- charts/**
- .github/workflows/release-chart.yaml

jobs:
release:
Expand All @@ -28,6 +31,7 @@ jobs:
version: v3.12.2

- name: Add -<sha> to version in charts/housewatch/Chart.yaml and update Chart.lock
if: github.ref != 'refs/heads/main'
run: |
sed -i 's/^version: \(.*\)$/version: \1-${{ github.sha }}/g' charts/housewatch/Chart.yaml
helm dependency update charts/housewatch/
Expand All @@ -42,6 +46,5 @@ jobs:
- name: Helm push
run: |
echo helm push housewatch-*.tgz oci://ghcr.io/posthog/housewatch/charts
helm push housewatch-*.tgz oci://ghcr.io/posthog/housewatch/charts

0 comments on commit aad601d

Please sign in to comment.