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

Commit

Permalink
fix(ci): Fix shellcheck failures in entrypoint.sh (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottBrenner authored Oct 12, 2020
1 parent 27337a6 commit 117def4
Showing 1 changed file with 5 additions and 4 deletions.
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"

0 comments on commit 117def4

Please sign in to comment.