Skip to content

Commit 05b6740

Browse files
authored
Add prepare_to_publish_to_s3_params (#23)
* Add prepare_to_publish_to_s3_params * Fix shellcheck concerns
1 parent 3936f85 commit 05b6740

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bin/prepare_to_publish_to_s3_params

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
PARAMS=(--sha1="$BUILDKITE_COMMIT")
4+
[[ -n "$BUILDKITE_TAG" ]] && PARAMS+=(--tag-name="$BUILDKITE_TAG")
5+
[[ -n "$BUILDKITE_BRANCH" ]] && PARAMS+=(--branch-name="$BUILDKITE_BRANCH")
6+
[[ -n "$BUILDKITE_PULL_REQUEST" && "$BUILDKITE_PULL_REQUEST" != "false" ]] && PARAMS+=(--pull-request-number="$BUILDKITE_PULL_REQUEST")
7+
echo "${PARAMS[@]}"

0 commit comments

Comments
 (0)