Skip to content

Commit

Permalink
Merge pull request #1395 from alphagov/update-set-automatic-deploy-to…
Browse files Browse the repository at this point in the history
…-use-newer-curl

Update set-automatic-deploys script to use newer version of curl
  • Loading branch information
nimalank7 authored Jul 19, 2024
2 parents f62d6e8 + 052f6ae commit 8476ffc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/set-automatic-deploys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,12 @@ jobs:
WEBHOOK_TOKEN: ${{ secrets.WEBHOOK_TOKEN }}
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
run: |
# TODO: use --fail-with-body instead of -f once curl 7.76 is in GH's ubuntu-latest.
curl -fs \
curl --fail-with-body --silent \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${WEBHOOK_TOKEN}" \
-d "{\"environment\": \"${ENVIRONMENT}\", \"repoName\": \"${REPO_NAME}\", \"automaticDeploysEnabled\": \"${AUTOMATIC_DEPLOYS_ENABLED}\"}" \
-d "{
\"environment\": \"${ENVIRONMENT}\",
\"repoName\": \"${REPO_NAME}\",
\"automaticDeploysEnabled\": \"${AUTOMATIC_DEPLOYS_ENABLED}\"
}" \
"${WEBHOOK_URL}/set-automatic-deploys-enabled"

0 comments on commit 8476ffc

Please sign in to comment.