Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev: Check the Heroku build status during our GitHub Actions deploy job #727

Merged
merged 1 commit into from
Oct 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,22 @@ jobs:
curl "$(jq -r .output_stream_url build.json)" \
--fail --silent --show-error --location

- name: Check Heroku build
run: |
id="$(jq -r .id build.json)"

curl https://api.heroku.com/apps/"$HEROKU_APP"/builds/"$id" \
--fail --silent --show-error --location --netrc \
--header 'Accept: application/vnd.heroku+json; version=3' \
| tee build.json

status="$(jq -r .status build.json)"

if [[ "$status" != succeeded ]]; then
echo "build status is $status (not succeeded)" >&2
exit 1
fi

- if: always()
name: Logout of Heroku
run: sed -i -e '/^machine api\.heroku\.com/d' ~/.netrc
Loading