Skip to content

Bump Version

Bump Version #11

Workflow file for this run

# 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:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Validate pcluster version format
run: |
if ! echo "${{ inputs.pcluster-version }}" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+$'; then
echo "Error: Invalid version format '${{ inputs.pcluster-version }}'. Expected format: X.Y.Z (e.g., 3.14.0)"
exit 1
fi
echo "Version format validated: ${{ inputs.pcluster-version }}"
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ inputs.branch }}
- name: Modifiy Code to Change version
run: ./util/bump-version.sh ${{ 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.
Please close and re-open the PR for Github Actions to run.
Auto-generated by Github Action
branch: versionbump${{ inputs.branch }}${{ inputs.pcluster-version }}
delete-branch: true
labels: skip-changelog-update