Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladyslav Hlushchenko committed Apr 8, 2024
1 parent 560bba4 commit 9bdb149
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
name: 'Slack Notification'
inputs:
slack_header: # id of input
required: false
default: ''
slack_context:
required: false
default: ''
slack_message_body:
default: ''
required: false
slack_id:
required: true
slack_token:
required: true
on:
workflow_call:
inputs:
slack_header: # id of input
required: false
default: ''
slack_context:
required: false
default: ''
slack_message_body:
default: ''
required: false
slack_id:
required: true
slack_token:
required: true

runs:
using: "composite"
steps:

jobs:
Slack_notification:
runs-on: ubuntu-latest
steps: slack_notification
- name: Prepare Slack Message
if: ${{ steps.publish.outcome == 'success' && !contains(matrix.package, 'Meta') }}
id: slack-prepare
Expand Down Expand Up @@ -54,6 +56,6 @@ runs:
uses: slackapi/[email protected]
with:
channel-id: ${{ env.SLACK_CHANNEL }}
payload: ${{ env. SLACK_PAYLOAD }}
payload: ${{ env.SLACK_PAYLOAD }}
env:
SLACK_BOT_TOKEN: ${{ inputs.slack_token }}
9 changes: 6 additions & 3 deletions .github/workflows/slack_notification_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ on:


jobs:
Slack_notification:
Slack_notification_test:
runs-on: ubuntu-latest
name: slack_notification
steps:
- uses: actions/checkout@v4
- id: notif
uses: datagrok-ai/public@vhlushchenko/GROK-15351-github-notification

- name: Slack
id: notif
uses: datagrok-ai/public/.github/workflows/slack_notification.yml@vhlushchenko/GROK-15351-github-notification
# secrets: inherit
with:
slack_token: ${{ secrets.SLACKBOT_TOKEN }}
slack_header: "GitHub <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.workflow }} ${{ github.run_number }}> failed tests:"
Expand Down

0 comments on commit 9bdb149

Please sign in to comment.