Skip to content

Commit

Permalink
馃敡 Make CI fail on invalid deploy (#4756)
Browse files Browse the repository at this point in the history
* 馃敡 Make CI fail on invalid deploy

* Update .github/workflows/build-status.yml
  • Loading branch information
dubzzz committed Feb 28, 2024
1 parent d11e73b commit d30be9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-status.yml
Expand Up @@ -536,7 +536,8 @@ jobs:
run: |
curl -H "Content-Type: application/zip" -H "Authorization: Bearer ${{secrets.NETLIFY_AUTH_TOKEN}}" --data-binary "@artifacts.zip" https://api.netlify.com/api/v1/sites/${{secrets.NETLIFY_SITE_ID}}/deploys?draft=${{env.DRAFT_BUILD}} > deploy.json
cat deploy.json
echo "deploy_url=$(jq -r '.deploy_url' deploy.json)" >> $GITHUB_OUTPUT
deploy_url=$(jq -r '.deploy_url' --exit-status deploy.json)
echo "deploy_url=$deploy_url" >> $GITHUB_OUTPUT
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
name: Notify the user of the preview
if: env.DRAFT_BUILD == 'true'
Expand Down

0 comments on commit d30be9e

Please sign in to comment.