diff --git a/.github/workflows/release_notice.yml b/.github/workflows/release_notice.yml index e17315a0..87ac00aa 100644 --- a/.github/workflows/release_notice.yml +++ b/.github/workflows/release_notice.yml @@ -14,8 +14,10 @@ jobs: run: echo "$GITHUB_CONTEXT" - name: Send custom JSON data to Slack workflow id: slack - uses: slackapi/slack-github-action@v1.23.0 + uses: slackapi/slack-github-action@v4.0.0 with: + webhook: ${{ secrets.SLACK_RELEASE }} + webhook-type: webhook-trigger # This data can be any valid JSON from a previous step in the GitHub Action payload: | { @@ -25,8 +27,6 @@ jobs: "body": ${{ toJSON(github.event.release.body) }}, "html_url": "${{ github.event.release.html_url }}" } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_RELEASE }} - name: Send custom JSON data to Discord uses: sarisia/actions-status-discord@v1.13.0 with: