Skip to content

Commit 35899aa

Browse files
hanwen-clusterhanwen-pcluste
authored andcommitted
Add Github Manual workflow to bump version for AWS Batch CLI
Signed-off-by: Hanwen <[email protected]>
1 parent 1468430 commit 35899aa

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Bump Version workflow that is triggered manually
2+
name: Bump Version for AWSBatch CLI
3+
4+
on:
5+
workflow_dispatch:
6+
# Inputs the workflow accepts.
7+
inputs:
8+
awsbatch-cli-version:
9+
description: 'The target version of AWSBatch 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+
- name: Modifiy Code to Change version
26+
run: ./util/bump-awsbatch-cli-version.sh ${{ inputs.awsbatch-cli-version }}
27+
28+
- name: Create a Pull Request
29+
uses: peter-evans/create-pull-request@v6
30+
with:
31+
commit-message: 'Bump version for awsbatch-cli to ${{ inputs.awsbatch-cli-version }}'
32+
title: 'Bump version for awsbatch-cli to ${{ inputs.awsbatch-cli-version }}'
33+
body: |
34+
This PR contains version bump for awsbatch-cli.
35+
Auto-generated by Github Action
36+
branch: versionbumpbatch${{ inputs.branch }}${{ inputs.awsbatch-cli-version }}
37+
delete-branch: true
38+
labels: skip-changelog-update

0 commit comments

Comments
 (0)