File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -315,14 +315,22 @@ jobs:
315
315
with :
316
316
persist-credentials : false
317
317
fetch-depth : 0 # otherwise, you will failed to push refs to dest repo
318
+ - id : semver
319
+
320
+ env :
321
+ REF_NAME : ${{ github.ref_name }}
322
+ with :
323
+ script : |
324
+ core.setOutput('formatted', process.env.REF_NAME.replace(/^v/, ""))
318
325
- name : update context
319
326
run : |
320
- sed -i 's/version: .* # VERSION/version: ${{github.ref_name }} # VERSION/' plural/manifests/context.yaml
327
+ sed -i 's/version: .* # VERSION/version: ${{steps.semver.outputs.formatted }} # VERSION/' plural/manifests/context.yaml
321
328
- name : Create Pull Request
322
329
uses : peter-evans/create-pull-request@v5
323
330
with :
324
331
title : Release ${{github.ref_name}}
325
332
body : Automated Pull Request to release ${{github.ref_name}}
326
333
commit-message : Updated chart to release ${{github.ref_name}}
334
+ branch : release-${{github.ref_name}}
327
335
labels : release
328
336
base : master
Original file line number Diff line number Diff line change 7
7
name : plural
8
8
namespace : infra
9
9
context :
10
- version : 0.11.9 # VERSION
10
+ version : 0.11.10 # VERSION
You can’t perform that action at this time.
0 commit comments