Skip to content

Commit

Permalink
Return a 0 exit code on skip
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Phoen committed Oct 30, 2019
1 parent eca4cdb commit 6c6870f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ NEXT_TAG="$3"

echo ::Executing bumper guard ::debug release_branch=${RELEASE_BRANCH},github_event_path=${GITHUB_EVENT_PATH}
/bumper guard "${RELEASE_BRANCH}" "${GITHUB_EVENT_PATH}"
if [ $? -eq 78 ]
then
echo ::debug ::Guard returned a neutral code, stopping the execution.
exit 0
fi

if [ -z "${NEXT_TAG}" ]
then
Expand All @@ -32,4 +37,4 @@ fi
echo ::debug ::Executing bumper release github_repository=${GITHUB_REPOSITORY},github_sha=${GITHUB_SHA},next_tag=${NEXT_TAG},strategy=${RELEASE_STRATEGY}
/bumper release --strategy "${RELEASE_STRATEGY}" "${GITHUB_REPOSITORY}" "${GITHUB_SHA}" "${NEXT_TAG}" "${GITHUB_TOKEN}"

echo ::set-output name=tag::${NEXT_TAG}
echo ::set-output name=tag::${NEXT_TAG}

0 comments on commit 6c6870f

Please sign in to comment.