basetenlabs/action-slack
forked from 8398a7/action-slack
Captured source
source ↗basetenlabs/action-slack
Description: Provides the function of slack notification to GitHub Actions.
License: MIT
Stars: 0
Forks: 0
Open issues: 4
Created: 2025-03-17T15:04:24Z
Pushed: 2026-02-10T01:04:12Z
Default branch: master
Fork: yes
Parent repository: 8398a7/action-slack
Archived: no
README:
action-slack
   
Quick Start
You can learn more about it here.
steps:
- uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest # selectable (default: repo,message)
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
if: always() # Pick up events even if the job fails or is canceled.Custom Formats of your choice
You can learn more about it here.
steps:
- uses: 8398a7/action-slack@v3
with:
status: custom
fields: workflow,job,commit,repo,ref,author,took
custom_payload: |
{
attachments: [{
color: '${{ job.status }}' === 'success' ? 'good' : '${{ job.status }}' === 'failure' ? 'danger' : 'warning',
text: `${process.env.AS_WORKFLOW}\n${process.env.AS_JOB} (${process.env.AS_COMMIT}) of ${process.env.AS_REPO}@${process.env.AS_REF} by ${process.env.AS_AUTHOR} ${{ job.status }} in ${process.env.AS_TOOK}`,
}]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always() # Pick up events even if the job fails or is canceled.For GitHub Enterprise
steps:
- uses: 8398a7/action-slack@v3
with:
github_base_url: https://your.ghe.com # Specify your GHE
status: ${{ job.status }}
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always()Require Permissions
If you are explicitly specifying permissions, must grant contents and actions.
permissions: contents: read actions: read
Notability
notability 2.0/10Routine fork with no notable traction