Skip to content

Commit

Permalink
fix: bash script still had a couple bugs (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Jun 8, 2019
1 parent 068d1a4 commit 9fabd64
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/action/release-please/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
set -e

export COMMAND=${RELEASE_PLEASE_COMMAND:-release-pr}
export ACTION==$(json "$GITHUB_EVENT_PATH" action)
export MERGED=$(json "$GITHUB_EVENT_PATH" pull_reuest.merged)
export ACTION=$(cat "$GITHUB_EVENT_PATH" | json action)
export MERGED=$(cat "$GITHUB_EVENT_PATH" | json pull_request.merged)

echo "action = $ACTION, merged = $MERGED"
if [[ "$ACTION" = "closed" ]] && [[ "$MERGED" = "true" ]]; then
release-please $COMMAND --token=$GITHUB_TOKEN \
--repo-url="git@github.com:$GITHUB_REPOSITORY.git" \
Expand Down

0 comments on commit 9fabd64

Please sign in to comment.