Skip to content

Commit

Permalink
cd(push-to-discord.yaml): fix interpolation for secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
minusmo committed Mar 5, 2024
1 parent 0eb0efe commit d9006c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/push-to-discord.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ jobs:
uses: actions/[email protected]

- name: Post Discord
shell: bash
env:
DISCORD_WEBHOOK: $ {{ secrets.GDSC_CAU_DISCORD_ARTICLES }}
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 }}
"$DISCORD_WEBHOOK"

0 comments on commit d9006c3

Please sign in to comment.