-
Notifications
You must be signed in to change notification settings - Fork 35
48 lines (40 loc) · 1.19 KB
/
release-chart.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Release Chart
on:
pull_request:
paths:
- charts/**
- .github/workflows/release-chart.yaml
push:
branches:
- main
paths:
- charts/**
- .github/workflows/release-chart.yaml
jobs:
release:
name: Release chart to repo
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Helm
uses: azure/setup-helm@v1
with:
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
- name: Configure Git
run: |
git config user.name "Max Hedgehog"
git config user.email "127861667+max-hedgehog[bot]@users.noreply.github.com"
- name: Run chart-releaser
uses: helm/chart-releaser-action@ed43eb303604cbc0eeec8390544f7748dc6c790d
if: github.repository == 'PostHog/HouseWatch'
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
skip_existing: true