Update build.yml
Another attempt at fixing discord integration
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user