Skip to content

Commit

Permalink
Add prepare_to_publish_to_s3_params (#23)
Browse files Browse the repository at this point in the history
* Add prepare_to_publish_to_s3_params

* Fix shellcheck concerns
  • Loading branch information
jkmassel authored Apr 13, 2022
1 parent 3936f85 commit 05b6740
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/prepare_to_publish_to_s3_params
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

PARAMS=(--sha1="$BUILDKITE_COMMIT")
[[ -n "$BUILDKITE_TAG" ]] && PARAMS+=(--tag-name="$BUILDKITE_TAG")
[[ -n "$BUILDKITE_BRANCH" ]] && PARAMS+=(--branch-name="$BUILDKITE_BRANCH")
[[ -n "$BUILDKITE_PULL_REQUEST" && "$BUILDKITE_PULL_REQUEST" != "false" ]] && PARAMS+=(--pull-request-number="$BUILDKITE_PULL_REQUEST")
echo "${PARAMS[@]}"

0 comments on commit 05b6740

Please sign in to comment.