From f5d802008eff60ef8855fd4c10210b2d2061ee33 Mon Sep 17 00:00:00 2001 From: Filip Golonka Date: Mon, 6 Feb 2023 10:21:31 +0100 Subject: [PATCH] feat: track heroku output in action --- action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 928f3c1..17a9287 100644 --- a/action.yml +++ b/action.yml @@ -24,5 +24,7 @@ runs: get_url=`echo $(jq -r '.source_blob.get_url' <<< "$sources")` put_url=`echo $(jq -r '.source_blob.put_url' <<< "$sources")` curl $put_url -X PUT -H "Content-Type:" -H "Accept: application/vnd.heroku+json; version=3" --data-binary @${{ runner.temp }}/heroku-build/release.tgz - curl -X POST https://api.heroku.com/apps/${{ inputs.app-name }}/builds -H 'Content-Type: application/json' -H 'Authorization: Bearer ${{ inputs.api-key }}' -H 'Accept: application/vnd.heroku+json; version=3' -d "{\"source_blob\":{\"url\":\"$get_url\",\"version\":\"`git rev-parse HEAD`\"}}" + data=`curl -X POST https://api.heroku.com/apps/${{ inputs.app-name }}/builds -H 'Content-Type: application/json' -H 'Authorization: Bearer ${{ inputs.api-key }}' -H 'Accept: application/vnd.heroku+json; version=3' -d "{\"source_blob\":{\"url\":\"$get_url\",\"version\":\"$version\"}}"` + output_stream_url=`echo $(jq -r '.output_stream_url' <<< "$data")` + curl -sS $output_stream_url -H "Accept: application/vnd.heroku\+json; version=3" -H "User-Agent: github-actions" shell: bash