Update build.yml

Another attempt at fixing discord integration
This commit is contained in:
Collin Kidder
2021-05-29 21:31:11 -04:00
committed by GitHub
parent 9806f2cc26
commit b794e5c472
+1 -2
View File
@@ -140,9 +140,8 @@ jobs:
steps:
- name: Notify Discord
run: |
echo "${{toJSON(github.event)}}"
curl -i -H "Accept: application/json" \
-H "Content-Type:application/json" \
-X POST \
--data "{\"content\": null,\"embeds\": [{\"title\": \"${{ github.repository }} Build Complete\", \"description\": \"Message: ${{ github.event.head_commit.message }}\\nCommit: ${{ github.sha }}\\n[Build Artifacts](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}#artifacts)\", \"color\": 5131997, \"author\": { \"name\": \"Github Builds\" } } ]}" \
--data "{\"content\": null,\"embeds\": [{\"title\": \"${{ github.repository }} Build Complete\", \"description\": \"${{ github.event.head_commit.message }}\\nCommit: ${{ github.sha }}\\n[Build Artifacts](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}#artifacts)\", \"color\": 5131997, \"author\": { \"name\": \"Github Builds\" } } ]}" \
https://discord.com/api/webhooks/${{ secrets.WEBHOOK_ID }}/${{ secrets.WEBHOOK_TOKEN }}