This action sends notifications to slack via Pingviini slackbot. Notifications are enriched with some toska swag based on given inputs.
Required Pingviini webhook url for some channel
Required Kind of message you want to send. Either 'deployment', 'deployment-failure' or 'test-failure'.
Required (only for message-type 'deployment') Url for softa (e.g. suotar staging, oodikone prod), will be a link in deployment message
Optionally append deployment target to deployment message, e.g. "Oodikone master started deployment
to deployment-target
". If not given, message will just have "Oodikone master started deployment".
Monorepos (e.g. importer, oodikone) usually have different workflows for different services. You can optionally append the name of the service that is going to be deployed to deployment message, e.g. "Oodikone trunk (sis-updater-scheduler) started deployment". If not given, message will just have "Oodikone trunk started deployment".
Check which tag version you want to use from
releases. Apply
that tag version to uses: UniversityOfHelsinkiCS/[email protected]
. Then use
workflow as follows:
- name: "Send notification to slack when deploying"
uses: UniversityOfHelsinkiCS/[email protected]
with:
webhook-url: ${{ secrets.WEBHOOK_URL }}
message-type: deployment
softa-url: https://opetushallinto.cs.helsinki.fi/suoritustarkistin
deployment-target: production
- name: "Send notification to slack when staging deployment fails"
uses: UniversityOfHelsinkiCS/[email protected]
with:
webhook-url: ${{ secrets.WEBHOOK_URL }}
message-type: deployment-failure
deployment-target: staging
- name: "Send notification to slack when tests fail"
uses: UniversityOfHelsinkiCS/[email protected]
with:
webhook-url: ${{ secrets.WEBHOOK_URL }}
message-type: test-failure