-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (58 loc) · 2.07 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Release Chart
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'charts/**'
- '.releaserc.js'
jobs:
bump:
name: Bump chart version
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
with:
fetch-depth: 0
token: ${{ secrets.BOT_TOKEN }}
# issue: https://github.com/helm/chart-releaser-action/issues/113
- name: Force tags download
run: |
git pull --tags
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Setup Helm
run: |
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
- name: Semantic release
uses: cycjimmy/semantic-release-action@v3
id: semantic
with:
dry_run: true
semantic_version: 19.0.5
extra_plugins: |
@semantic-release/[email protected]
@semantic-release/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Bump chart version
if: steps.semantic.outputs.new_release_published == 'true'
run: |
echo "Bumping chart version ${{ steps.semantic.outputs.new_release_version }}"
yq -i ".version = \"${{ steps.semantic.outputs.new_release_version }}\"" "charts/interop-eks-cronjob-chart/Chart.yaml"
git add "charts/interop-eks-cronjob-chart/Chart.yaml"
git commit -m "Bump chart version ${{ steps.semantic.outputs.new_release_version }}"
git push -u origin ${{ github.ref_name }}
- name: Run chart-releaser
if: steps.semantic.outputs.new_release_published == 'true'
uses: helm/chart-releaser-action@a3454e46a6f5ac4811069a381e646961dda2e1bf # v1.4.0
env:
CR_TOKEN: "${{ secrets.BOT_TOKEN }}"