Skip to content

Commit

Permalink
Add Github Manual workflow to bump version for AWS Batch CLI
Browse files Browse the repository at this point in the history
Signed-off-by: Hanwen <hanwenli@amazon.com>
  • Loading branch information
hanwen-pcluste committed Jul 2, 2024
1 parent 1468430 commit 35899aa
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/bump_version_awsbatch_cli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Bump Version workflow that is triggered manually
name: Bump Version for AWSBatch CLI

on:
workflow_dispatch:
# Inputs the workflow accepts.
inputs:
awsbatch-cli-version:
description: 'The target version of AWSBatch CLI'
required: true
type: string
branch:
description: 'The Github branch name'
required: true
type: string

jobs:
create-pull-requests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ inputs.branch }}
- name: Modifiy Code to Change version
run: ./util/bump-awsbatch-cli-version.sh ${{ inputs.awsbatch-cli-version }}

- name: Create a Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: 'Bump version for awsbatch-cli to ${{ inputs.awsbatch-cli-version }}'
title: 'Bump version for awsbatch-cli to ${{ inputs.awsbatch-cli-version }}'
body: |
This PR contains version bump for awsbatch-cli.
Auto-generated by Github Action
branch: versionbumpbatch${{ inputs.branch }}${{ inputs.awsbatch-cli-version }}
delete-branch: true
labels: skip-changelog-update

0 comments on commit 35899aa

Please sign in to comment.