Skip to content

Commit

Permalink
cd(push-to-discord.yaml): update message push to use cUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
minusmo committed Mar 5, 2024
1 parent 6e5c06d commit 3d0318b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/push-to-discord.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ jobs:
uses: actions/[email protected]

- name: Post Discord
env:
DISCORD_WEBHOOK: $ {{ secrets.GDSC_CAU_DISCORD_ARTICLES }}
DISCORD_EMBEDS: '[{ "author": { "name": "${{ github.event.pull_request.user.login }}" }, "title": "${{ github.event.pull_request.title }}", "description": "${{ github.event.pull_request.body }}", "color": "${{ vars.DISCORD_EMBED_COLOR }}" }]'
uses: Ilshidur/[email protected]
with:
args: "New readings are updated!"
run: |
curl -X POST \
-H "Content-Type: application/json" \
-d '{ "content": "New readings are updated!", "embeds": [{ "author": { "name": "${{ github.event.pull_request.user.login }}" }, "title": "${{ github.event.pull_request.title }}", "url": "https://github.com/${{ github.repository }}", "description": "${{ github.event.pull_request.body }}", "color": ${{ vars.DISCORD_EMBED_COLOR }} }]}' \
$ {{ secrets.GDSC_CAU_DISCORD_ARTICLES }}

0 comments on commit 3d0318b

Please sign in to comment.