From 7fec63c9118daf07eea64a5eb085932e78956a12 Mon Sep 17 00:00:00 2001 From: gounux Date: Tue, 17 Dec 2024 14:26:11 +0100 Subject: [PATCH] fix(ci): change slack notif job syntax --- .github/workflows/manual_new_rdp.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/manual_new_rdp.yml b/.github/workflows/manual_new_rdp.yml index f3162cc345..be6dad2abf 100644 --- a/.github/workflows/manual_new_rdp.yml +++ b/.github/workflows/manual_new_rdp.yml @@ -71,7 +71,6 @@ jobs: uses: slackapi/slack-github-action@v2.0 if: "${{ github.event.inputs.notify-slack == 'true' }}" with: + webhook: ${{ secrets.SLACK_WEBHOOK_URL }} + webhook-type: incoming-webhook payload: '{"blocks":[{"type":"section","text":{"type":"mrkdwn","text":":newspaper: La GeoRDP du ${{ env.DATE_FR_LONG }} a été créée et attend vos contributions :writing_hand: !"}},{"type":"section","fields":[{"type":"mrkdwn","text":"Créée par *${{ github.actor }}* via GitHub Action."}]},{"type":"actions","elements":[{"type":"button","text":{"type":"plain_text","emoji":true,"text":":squid: Voir la PR (GitHub)"},"url":"${{ steps.cpr.outputs.pr_url }}"},{"type":"button","text":{"type":"plain_text","emoji":true,"text":":eye: Voir la preview (Netlify)"},"style":"primary","url":"https://preview-pullrequest-${{steps.cpr.outputs.pr_number}}--geotribu-preprod.netlify.app/"}]}]}' - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK