Skip to content

Release start

Release start #18

Workflow file for this run

# This is a basic workflow that is manually triggered
name: Release start
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
workflow_dispatch:
# Inputs the workflow accepts.
inputs:
version_name:
description: 'Release version name'
required: true
type: string
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
create_branch:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
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: Commit and Push Changes
run: |
git add .
git commit -m "Update version to ${{ inputs.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 }}