CICD Actions for interactive messaging services with Slack
232
Interactive messaging services for Slack.
This action need a compatible backend using API Key from the header X-API-Key.
API_URLRequired API URL handling the messaging system.
API_KEYRequired API KEY for authentication.
SERVICERequired Service using this action as 'github', 'gitlab', 'bitbucket'.
PROJECTRequired Name of the project.
CHANNELRequired Slack channel to post the message.
REFRequired Repo reference as GITHUB_REF, 'refs/head/master', ...
RUN_IDRequired Runner ID as GITHUB_RUN_ID.
STEPRequired Step triggering the call.
TYPERequired Message type as ('error', 'request', 'status').
STATUSRequired Inline status following the regex (?(DEFINE)(?<status>\w*:(?:FAIL|PASS)))^(?&status)(?:;(?&status))*$ as Build:PASS;Test:FAIL.
ISSUE_IDRequired Issue ID for internal reference.
ACTORRequired Trigger Actor as GITHUB_ACTOR.
REPOSITORYRequired Repository as GITHUB_REPOSITORY, 'user/project'.
WORKFLOWOptional Workflow reference for manual triggering, for GitHub it represent the workflow file name.
TIMESTAMPOptional Slack timestamp for editing a previous message.
VERBOSEOptional Level of verbose, options: ['0', '1', '2'], default: '0'. WARNING: Level 1 and 2 can print sensitive information.
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: docker://toumoro/slack-messaging-action:latest
env:
API_URL: ${{ env.API_URL }}
API_KEY: ${{ secrets.API_KEY }}
SERVICE: github
CHANNEL: my-channel
REF: ${{ github.ref }}
RUN_ID: ${{ github.run_id }}
STEP: Tests
TYPE: deploy
STATUS: Build:PASS;Test:PASS
ISSUE_ID: '1234'
ACTOR: ${{ github.actor }}
REPOSITORY: ${{ github.repository }}
WORKFLOW: 'my-next-workflow.yml'
VERBOSE: '0'
stage:
...
- send_message
image: toumoro/slack-messaging-action:latest
script: [ 'true' ]
variables:
...
pipelines:
default:
...
- step:
name: Send Message
script:
- *auto_devops
- set_environment_variable
- pipe: docker://toumoro/slack-messaging-action:latest
variables:
...
Content type
Image
Digest
Size
29.9 MB
Last updated
about 6 years ago
docker pull toumoro/slack-messaging-action