Skip to content

Commit dfcc7c2

Browse files
authored
Merge pull request #1024 from broadinstitute/pipeline-runner-release
update pipeline-runner helm release action to bump version too
2 parents a96e77f + da41e1c commit dfcc7c2

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/prod-release.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,28 @@ jobs:
8686
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
8787
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
8888

89-
- name: Update appVersion in seqr Chart file
89+
- name: Get latest pipeline-runner version
9090
uses: mikefarah/yq@v4.22.1
91+
id: current
9192
with:
9293
cmd: >
93-
yq -i '.appVersion = "${{ github.event.workflow_run.head_sha }}"' charts/pipeline-runner/Chart.yaml
94+
yq -r '.version' charts/pipeline-runner/Chart.yaml
95+
96+
- name: Bump version
97+
id: bump
98+
uses: cbrgm/semver-bump-action@main
99+
with:
100+
current-version: ${{ steps.current.outputs.result }}
101+
bump-level: minor
102+
103+
- name: Update appVersion and version in pipeline-runner Chart file
104+
uses: mikefarah/yq@v4.22.1
105+
with:
106+
cmd: >
107+
yq -i '
108+
.appVersion = "${{ github.event.workflow_run.head_sha }}" |
109+
.version = "${{ steps.bump.outputs.new_version }}"
110+
' charts/pipeline-runner/Chart.yaml
94111
95112
- name: Commit and Push changes
96113
uses: Andro999b/push@v1.3

0 commit comments

Comments
 (0)