Skip to content
This repository has been archived by the owner on Oct 10, 2021. It is now read-only.

fix(ci): Fix shellcheck failures in entrypoint.sh #13

Merged
merged 8 commits into from
Oct 12, 2020
9 changes: 5 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/bin/sh -l
# shellcheck disable=SC2039

git clone --quiet https://github.com/$REPO &> /dev/null
git clone --quiet https://github.com/"$REPO"

if [ "$REPO" == "ScottBrenner/generate-changelog-action" ]; then
cd generate-changelog-action
if [ "$REPO" = "ScottBrenner/generate-changelog-action" ]; then
cd generate-changelog-action || exit
fi

if [ "$1" ] && [ "$1" != "package.json" ]; then
Expand All @@ -17,6 +18,6 @@ changelog="${changelog//'%'/'%25'}"
changelog="${changelog//$'\n'/'%0A'}"
changelog="${changelog//$'\r'/'%0D'}"

echo $changelog
echo "$changelog"

echo "::set-output name=changelog::$changelog"