Skip to content

Commit 1468430

Browse files
hanwen-clusterhanwen-pcluste
authored andcommitted
Add Github Manual workflow to bump version
Signed-off-by: Hanwen <hanwenli@amazon.com>
1 parent 2a13ae6 commit 1468430

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/bump_version.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Bump Version workflow that is triggered manually
2+
name: Bump Version
3+
4+
on:
5+
workflow_dispatch:
6+
# Inputs the workflow accepts.
7+
inputs:
8+
pcluster-version:
9+
description: 'The target version of ParallelCluster CLI'
10+
required: true
11+
type: string
12+
branch:
13+
description: 'The Github branch name'
14+
required: true
15+
type: string
16+
17+
jobs:
18+
create-pull-requests:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
with:
23+
fetch-depth: 0
24+
ref: ${{ inputs.branch }}
25+
- uses: actions/setup-java@v1
26+
with:
27+
java-version: 11
28+
- run: |
29+
sudo npm install -g redoc-cli
30+
sudo snap install yq
31+
- name: Modifiy Code to Change version
32+
run: ./util/bump-version.sh --version ${{ inputs.pcluster-version }}
33+
34+
- name: Create a Pull Request
35+
uses: peter-evans/create-pull-request@v6
36+
with:
37+
commit-message: 'Bump version to ${{ inputs.pcluster-version }}'
38+
title: 'Bump version to ${{ inputs.pcluster-version }}'
39+
body: |
40+
This PR contains version bump.
41+
Auto-generated by Github Action
42+
branch: versionbump${{ inputs.branch }}${{ inputs.pcluster-version }}
43+
delete-branch: true
44+
labels: skip-changelog-update

0 commit comments

Comments
 (0)