Skip to content

Commit

Permalink
update development and release version names
Browse files Browse the repository at this point in the history
  • Loading branch information
andresmr committed Jan 2, 2024
1 parent d344231 commit 6a13aec
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions .github/workflows/release-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 }}

0 comments on commit 6a13aec

Please sign in to comment.