-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Github Manual workflow to bump version
Signed-off-by: Hanwen <hanwenli@amazon.com>
- Loading branch information
1 parent
2a13ae6
commit 1468430
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Bump Version workflow that is triggered manually | ||
name: Bump Version | ||
|
||
on: | ||
workflow_dispatch: | ||
# Inputs the workflow accepts. | ||
inputs: | ||
pcluster-version: | ||
description: 'The target version of ParallelCluster 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 }} | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- run: | | ||
sudo npm install -g redoc-cli | ||
sudo snap install yq | ||
- name: Modifiy Code to Change version | ||
run: ./util/bump-version.sh --version ${{ inputs.pcluster-version }} | ||
|
||
- name: Create a Pull Request | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
commit-message: 'Bump version to ${{ inputs.pcluster-version }}' | ||
title: 'Bump version to ${{ inputs.pcluster-version }}' | ||
body: | | ||
This PR contains version bump. | ||
Auto-generated by Github Action | ||
branch: versionbump${{ inputs.branch }}${{ inputs.pcluster-version }} | ||
delete-branch: true | ||
labels: skip-changelog-update |