Skip to content

Commit

Permalink
fix: check for nothing to do when attempting release
Browse files Browse the repository at this point in the history
Signed-off-by: degenaro <[email protected]>
  • Loading branch information
degenaro committed Nov 16, 2023
1 parent 68fdb65 commit 217aa16
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 217aa16

Please sign in to comment.