-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (36 loc) · 1.13 KB
/
studio_release.yml
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
on:
repository_dispatch:
types: [studio-release]
permissions:
contents: write
pull-requests: write
jobs:
release:
concurrency:
group: release
runs-on: ubuntu-latest
env:
STUDIO_VERSION: ${{ github.event.client_payload.version }}
steps:
- uses: actions/checkout@v4
- run: |
for expression in \
'.version |= (split(".") | .[-1] |= ((. type = "!!int") + 1) | join("."))' \
'.appVersion = env(STUDIO_VERSION)'
do
go run github.com/mikefarah/yq/[email protected] eval --inplace "$expression" charts/studio/Chart.yaml
done
- uses: iterative/setup-cml@v1
- run: >
cml pr create .
--{title,body,message}="Studio: bump to $STUDIO_VERSION"
--branch="bump-studio-$STUDIO_VERSION"
--squash
env:
GITHUB_TOKEN: ${{ secrets.OLIVAW_GITHUB_PERSONAL_ACCESS_TOKEN }}
- run: >
gh api repos/${{ github.repository }}/pulls/$(gh pr view --{json=,jq=.}number)/reviews
--field event=APPROVE
--method POST
env:
GITHUB_TOKEN: ${{ github.token }}