Skip to content

Commit

Permalink
fix: Updated with dynamic branch
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshmiravalir authored Aug 25, 2021
1 parent 3b0996a commit 7e8882b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/updateApiDefinitions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ rm -rf OAI_CHANGES.md
echo "Git configurations"
git config --global user.email "lakshmiravali.rimmalapudi@gmail.com"
git config --global user.name "lakshmiravali"
branch=${git branch)
echo "Current branch: $branch"
git add .
commitMessage=''
if [ $versionType == 0 ] || [ $versionType == 1 ]
then
commitMessage='feat: Updated api definitions'
commitMessage='doc: Updated api definitions'
elif [ $versionType == 2 ]
then
commitMessage='fix: Updated api definitions'
Expand All @@ -27,4 +29,4 @@ else
fi
echo "Commit message:$commitMessage"
git commit -m "$commitMessage"
git push origin test_branch_actions
git push origin $branch

0 comments on commit 7e8882b

Please sign in to comment.