Skip to content

Commit

Permalink
Switch the check
Browse files Browse the repository at this point in the history
  • Loading branch information
darrynten committed Feb 20, 2020
1 parent 0f6eb3d commit 115c1ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ FROM ubuntu:latest
LABEL "repository"="http://github.com/UnicornGlobal/has-changes-action"
LABEL "homepage"="http://github.com/UnicornGlobal/has-changes-action"

RUN apt-get install -y git
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y git

ADD entrypoint.sh /
RUN chmod +x /entrypoint.sh
Expand Down
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ set -e
function check() {
if [[ -z "$(git status --porcelain)" ]];
then
return 0
else
return 1
else
return 0
fi
}

Expand Down

0 comments on commit 115c1ed

Please sign in to comment.