From ad66a07795cbead413f69dec9d4efc98910f9c11 Mon Sep 17 00:00:00 2001 From: Drew Oldag <47493171+drewoldag@users.noreply.github.com> Date: Mon, 2 Oct 2023 12:11:11 -0700 Subject: [PATCH] Create slack_integration.yml --- .github/workflows/slack_integration.yml | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/slack_integration.yml diff --git a/.github/workflows/slack_integration.yml b/.github/workflows/slack_integration.yml new file mode 100644 index 0000000..c3b1254 --- /dev/null +++ b/.github/workflows/slack_integration.yml @@ -0,0 +1,30 @@ +name: CI for Template + +on: + workflow_dispatch: + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - name: Send custom JSON data to Slack workflow + id: slack + uses: slackapi/slack-github-action@v1.24.0 + with: + # For posting a rich message using Block Kit + payload: | + { + "text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}", + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" + } + } + ] + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK