-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update development and release version names
- Loading branch information
Showing
1 changed file
with
22 additions
and
10 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 |
---|---|---|
|
@@ -8,8 +8,13 @@ on: | |
workflow_dispatch: | ||
# Inputs the workflow accepts. | ||
inputs: | ||
version_name: | ||
description: 'Release version name' | ||
release_version_name: | ||
description: 'New release version name' | ||
required: true | ||
type: string | ||
|
||
development_version_name: | ||
description: 'Development version name' | ||
required: true | ||
type: string | ||
|
||
|
@@ -28,23 +33,30 @@ jobs: | |
with: | ||
python-version: 3.12.1 | ||
|
||
- name: Run Python script to update base branch version | ||
run: python scripts/updateVersionName.py ${{ inputs.version_name }} | ||
|
||
- name: setup git config | ||
run: | | ||
# setup the username and email. | ||
git config user.name "GitHub Actions Bot" | ||
git config user.email "<[email protected]>" | ||
- name: Run Python script to update base branch version | ||
run: python scripts/updateVersionName.py ${{ inputs.development_version_name }} | ||
|
||
- name: Commit and Push Changes | ||
run: | | ||
git add . | ||
git commit -m "Update version to ${{ inputs.version_name }}" | ||
git commit -m "Update version to ${{ inputs.development_version_name }}" | ||
git push | ||
# override vName with new version | ||
# - name: Create release branch | ||
# run: git checkout -b release/${{ inputs.version_name }} | ||
# - name: Push | ||
# run: git push origin release/${{ inputs.version_name }} | ||
- name: Create release branch | ||
run: git checkout -b release/${{ inputs.release_version_name }} | ||
|
||
- name: Run Python script to update release branch version | ||
run: python scripts/updateVersionName.py ${{ inputs.release_version_name }} | ||
|
||
- name: Push | ||
run: | | ||
git add . | ||
git commit -m "Update version to ${{ inputs.release_version_name }}" | ||
git push origin release/${{ inputs.release_version_name }} |