Skip to content

Commit

Permalink
Test posting to Slack from GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
seanh committed Sep 13, 2023
1 parent e9c29a2 commit 683edbe
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/slack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Test posting to Slack
on:
workflow_dispatch:
jobs:
Slack:
runs-on: ubuntu-latest
steps:
- name: Test posting to Slack
uses: slackapi/[email protected]
with:
channel-id: 'testing-github-actions-slack-bot'
slack-message: "GitHub build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 comments on commit 683edbe

Please sign in to comment.