mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-02 10:35:08 -05:00
20 lines
641 B
YAML
20 lines
641 B
YAML
|
name: Notify STACKIT
|
||
|
description: "Notify STACKIT about test failure"
|
||
|
inputs:
|
||
|
slackToken:
|
||
|
description: "Slack access token."
|
||
|
required: true
|
||
|
runs:
|
||
|
using: "composite"
|
||
|
steps:
|
||
|
- name: Notify STACKIT
|
||
|
env:
|
||
|
SLACK_TOKEN: ${{ inputs.slackToken }}
|
||
|
shell: bash
|
||
|
run: |
|
||
|
curl -X POST \
|
||
|
-H "Authorization: Bearer $SLACK_TOKEN" \
|
||
|
-H "Content-type: application/json; charset=utf-8" \
|
||
|
-d "{\"channel\":\"C0827BT59SM\",\"text\":\"E2E test failed: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID\"}" \
|
||
|
https://slack.com/api/chat.postMessage
|