-
Notifications
You must be signed in to change notification settings - Fork 69
55 lines (49 loc) · 1.76 KB
/
release.yml
File metadata and controls
55 lines (49 loc) · 1.76 KB
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
49
50
51
52
53
54
#
# Copyright (c) 2019 - 2024 StreamNative, Inc.. All Rights Reserved.
#
name: Post commit - Publish Pulsar Helm Chart
on:
workflow_dispatch:
inputs:
chart:
description: name of chart
required: true
type: choice
options:
- function-mesh-operator
- image-puller
- local-storage-provisioner
- pulsar
- pulsar-operator
- sn-console
- sn-platform
branch:
description: version of base branch (such as 1.2)
required: true
release:
description: version of release branch (such as 1.2.1)
required: true
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: branch-${{ github.event.inputs.chart }}-${{ github.event.inputs.branch }}
- name: Upgrade chart to release version
run: sed -ri 's/version:\ [0-9]+\.[0-9]+\.[0-9]+/version:\ ${{ github.event.inputs.release }}/' charts/${{ github.event.inputs.chart }}/Chart.yaml
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
branch: release-${{ github.event.inputs.chart }}-${{ github.event.inputs.release }}
title: Bump ${{ github.event.inputs.chart }} chart version to ${{ github.event.inputs.release }}
- name: Install chart
env:
GITHUB_TOKEN: ${{ secrets.SNBOT_TOKEN }}
SNBOT_USER: ${{ secrets.SNBOT_USER }}
CHARTS_REPO: ${{ secrets.CHARTS_REPO }}
GITUSER: ${{ secrets.GITUSER }}
GITEMAIL: ${{ secrets.GITEMAIL }}
run: |
.ci/release.sh ${{ github.event.inputs.chart }} release-${{ github.event.inputs.chart }}-${{ github.event.inputs.release }}