name: Notify Slack
on: push
jobs:
notify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Notify Slack
uses: slackapi/slack-github-action@v1.19.0
with:
payload: '{"text":"A new commit has been pushed to the repository."}'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
slackapi/slack-github-action
: A third-party action to send a message to Slack.SLACK_WEBHOOK_URL
: Stores your Slack webhook URL securely in GitHub Secrets.