Skip to content

Commit ef6437c

Browse files
authored
Merge pull request #3375 from buildkite/update-homebrew-formula-location
Update homebrew formula location
2 parents 8a08954 + 313a496 commit ef6437c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.buildkite/steps/release-homebrew.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
# Must be executed after github-release.sh as it depends on release meta-data
3+
# Must be executed after github-release.sh as it depends on release meta-data
44

55
set -euo pipefail
66

@@ -86,7 +86,7 @@ echo "--- :octocat: Fetching current Homebrew formula from GitHub Contents API"
8686
FORMULA_FILE=./pkg/buildkite-agent.rb
8787
UPDATED_FORMULA_FILE=./pkg/buildkite-agent-updated.rb
8888

89-
CONTENTS_API_RESPONSE="$(curl "https://api.github.com/repos/buildkite/homebrew-buildkite/contents/buildkite-agent.rb" -H "Authorization: token ${GITHUB_RELEASE_ACCESS_TOKEN}")"
89+
CONTENTS_API_RESPONSE="$(curl "https://api.github.com/repos/buildkite/homebrew-buildkite/contents/Formula/buildkite-agent.rb" -H "Authorization: token ${GITHUB_RELEASE_ACCESS_TOKEN}")"
9090

9191
echo "Base64 decoding GitHub response into $FORMULA_FILE"
9292

@@ -127,7 +127,7 @@ JSON
127127

128128
if [[ "${DRY_RUN:-}" == "false" ]] ; then
129129
echo "Posting JSON to GitHub Contents API"
130-
curl -X PUT "https://api.github.com/repos/buildkite/homebrew-buildkite/contents/buildkite-agent.rb" \
130+
curl -X PUT "https://api.github.com/repos/buildkite/homebrew-buildkite/contents/Formula/buildkite-agent.rb" \
131131
-H "Authorization: token ${GITHUB_RELEASE_ACCESS_TOKEN}" \
132132
-H "Content-Type: application/json" \
133133
--data-binary "@pkg/github_post_data.json" \

0 commit comments

Comments
 (0)