Skip to content

Commit

Permalink
Merge branch 'master' of github.com:infracost/gh-actions-demo
Browse files Browse the repository at this point in the history
  • Loading branch information
alikhajeh1 committed Feb 16, 2024
2 parents 4000541 + 28df2a2 commit d8fd2d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/infracost.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ jobs:
if [[ ${{ github.event.pull_request.merged }} = false ]]; then PR_STATUS="CLOSED"; fi
echo "Updating status of ${{ github.event.pull_request.html_url }} to $PR_STATUS"
curl \
curl -i \
--request POST \
--header "Content-Type: application/json" \
--header "X-API-Key: $INFRACOST_API_KEY" \
--data "{ \"query\": \"mutation {updatePullRequestStatus( url: \"${{ github.event.pull_request.html_url }}\", status: $PR_STATUS )}\" }" \
--data "{ \"query\": \"mutation {updatePullRequestStatus( url: \\\"${{ github.event.pull_request.html_url }}\\\", status: $PR_STATUS )}\" }" \
"https://dashboard.api.infracost.io/graphql";
env:
INFRACOST_API_KEY: ${{ secrets.INFRACOST_API_KEY }}

0 comments on commit d8fd2d0

Please sign in to comment.