From 3d0318b89cbdfde0cb3b3d2e2f6a4174bb93934e Mon Sep 17 00:00:00 2001 From: hojooneum Date: Tue, 5 Mar 2024 20:19:28 +0900 Subject: [PATCH] cd(push-to-discord.yaml): update message push to use cUrl --- .github/workflows/push-to-discord.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/push-to-discord.yaml b/.github/workflows/push-to-discord.yaml index 2d1be8b..9ebe0f4 100644 --- a/.github/workflows/push-to-discord.yaml +++ b/.github/workflows/push-to-discord.yaml @@ -17,9 +17,8 @@ jobs: uses: actions/checkout@v4.1.1 - 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/action-discord@0.3.2 - 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 }}