Skip to content

Commit

Permalink
fix: handle content not initialized
Browse files Browse the repository at this point in the history
Signed-off-by: Lou DeGenaro <[email protected]>
  • Loading branch information
degenaro committed Nov 16, 2023
1 parent 60079a1 commit 104da24
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/automation/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

source config.env

# If there is no catalog or markdown, then there is nothing to do
COUNT_CATALOG_MD=$(ls -l md_catalogs | grep ^- | wc -l)
COUNT_CATALOGS=$(ls -l catalogs | grep ^- | wc -l)
let "INITIALIZED = $COUNT_CATALOG_MD + $COUNT_CATALOGS"
if [ $INITIALIZED -eq 0 ]
then
echo "no catalog or markdown, nothing to do"
exit 0
fi

version_tag=$(semantic-release print-version)
echo "Bumping version of catalogs to ${version_tag}"
export VERSION_TAG="$version_tag"
Expand Down

0 comments on commit 104da24

Please sign in to comment.