Skip to content

Commit

Permalink
fix: another possible fix for git push on release
Browse files Browse the repository at this point in the history
  • Loading branch information
Emdien committed May 23, 2022
1 parent 175cd3c commit 6ed4833
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/fullparse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ then

if [ "$(ls -A ./$contents_folder/temp_results)" ]
then
if [ $release == 'true'] && [ "$(ls -A ./$contents_folder/results)" ]
if [ $release == 'true' ] && [ "$(ls -A ./$contents_folder/results)" ]
then
rsync -a $contents_folder/results/ $contents_folder/archives/
rm -rf $contents_folder/results/*
Expand All @@ -79,13 +79,20 @@ then
mv -v $contents_folder/temp_results/* $contents_folder/results/
git config user.name github-actions
git config user.email [email protected]
git add $contents_folder/
git commit -m "Ontology metrics calculated - OQuaRE"
if [ $release == 'true' ]
then
git push origin HEAD:master
git branch temp_branch
git checkout temp_branch
git add $contents_folder/
git commit -m "Ontology metrics calculated - OQuaRE"
git checkout master
git merge temp_branch
git push origin master
else
git add $contents_folder/
git commit -m "Ontology metrics calculated - OQuaRE"
git push
fi
git push

fi
fi

0 comments on commit 6ed4833

Please sign in to comment.