Skip to content

Commit

Permalink
Syntax fix and clarification of why no release
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeByDrescher committed Sep 22, 2024
1 parent af71eb3 commit 97f641f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,19 @@ jobs:
bioSimVersion=$(poetry -q run python -c "import biosimulators_copasi as bsc; print(bsc.__version__)")
oldBioSimVersion=${{ steps.latest_release_info.outputs.tag_name }}
if [ $oldBioSimVersion < $bioSimVersion] && [ -z ${{ steps.get-tagged-version.outputs.version }} ]; then
if [ $oldBioSimVersion < $bioSimVersion ] && [ -z ${{ steps.get-tagged-version.outputs.version }} ]; then
echo "needDeploy=true" >> "$GITHUB_OUTPUT"
echo "Deploy will be performed!"
else
echo "needDeploy=false" >> "$GITHUB_OUTPUT"
echo "Deploy will NOT be performed:"
# Get an idea of why we will not deploy
if [ $oldBioSimVersion < $bioSimVersion ]; then
echo "Version is not newer than existing version"
fi
if [ -z ${{ steps.get-tagged-version.outputs.version }} ]; then
echo "This is not a tagged action; push a new tag to release."
fi
fi
#############################################
Expand Down

0 comments on commit 97f641f

Please sign in to comment.