-
Notifications
You must be signed in to change notification settings - Fork 8
41 lines (38 loc) · 1.11 KB
/
chart-publish.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
name: Update Charts
on:
push:
tags:
- 'v*'
jobs:
build:
name: Update Charts
runs-on: ubuntu-latest
steps:
- name: Checkout main repository
uses: actions/checkout@v3
with:
path: main
- name: Checkout charts repository
uses: actions/checkout@v3
with:
repository: fybrik/charts
path: charts-repo
- run: |
rm -rf charts-repo/charts/data-movement-operator
cp -r main/charts/data-movement-operator charts-repo/charts
- uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.CHARTS_APP_ID }}
private_key: ${{ secrets.CHARTS_APP_PRIVATE_KEY }}
repository: fybrik/charts
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
path: charts-repo
signoff: true
token: ${{ steps.generate-token.outputs.token }}
title: 'Update charts to new release'
commit-message: Update charts
committer: GitHub <[email protected]>
delete-branch: true