Skip to content

Commit

Permalink
Merge branch 'buildkite-plugins:main' into annotation-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jtszalay committed Feb 4, 2024
2 parents 9769896 + 21268b2 commit 94a89fa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 9 additions & 9 deletions hooks/pre-exit
Original file line number Diff line number Diff line change
Expand Up @@ -107,22 +107,22 @@ upload() {
"--form" "format=${format}"
"--form" "data=@\"$file\""
"--form" "run_env[CI]=buildkite"
"--form" "run_env[key]=$BUILDKITE_BUILD_ID"
"--form" "run_env[url]=$BUILDKITE_BUILD_URL"
"--form" "run_env[branch]=$BUILDKITE_BRANCH"
"--form" "run_env[commit_sha]=$BUILDKITE_COMMIT"
"--form" "run_env[number]=$BUILDKITE_BUILD_NUMBER"
"--form" "run_env[job_id]=$BUILDKITE_JOB_ID"
"--form" "run_env[message]=$BUILDKITE_MESSAGE"
"--form" "run_env[key]=\"$BUILDKITE_BUILD_ID\""
"--form" "run_env[url]=\"$BUILDKITE_BUILD_URL\""
"--form" "run_env[branch]=\"$BUILDKITE_BRANCH\""
"--form" "run_env[commit_sha]=\"$BUILDKITE_COMMIT\""
"--form" "run_env[number]=\"$BUILDKITE_BUILD_NUMBER\""
"--form" "run_env[job_id]=\"$BUILDKITE_JOB_ID\""
"--form" "run_env[message]=\"$BUILDKITE_MESSAGE\""
"--form" "run_env[collector]=test-collector-buildkite-plugin"
)

if [[ "$DEBUG" == "true" ]]; then
curl_args+=("--form" "run_env[debug]=$DEBUG")
curl_args+=("--form" "run_env[debug]=\"$DEBUG\"")
fi

if [[ -n "$PLUGIN_VERSION" ]]; then
curl_args+=("--form" "run_env[version]=$PLUGIN_VERSION")
curl_args+=("--form" "run_env[version]=\"$PLUGIN_VERSION\"")
fi

if [[ "$ANNOTATE" != "false" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion tests/pre-exit-success.bats
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ COMMON_CURL_OPTIONS='--form \* --form \* --form \* --form \* --form \* --form \*

assert_success
assert_output --partial "curl success"
assert_output --partial "run_env[version]=some-commit-id"
assert_output --partial "run_env[version]=\"some-commit-id\""
}

@test "Follow links option enabled adds find option" {
Expand Down

0 comments on commit 94a89fa

Please sign in to comment.