email + issue + slack + gh notif is a little too much noise.

This commit is contained in:
Jacob Heider 2023-08-15 18:00:40 -04:00
parent c0df6e2dfb
commit 844e304947
No known key found for this signature in database
GPG key ID: A98011B5713535BF
2 changed files with 18 additions and 15 deletions

View file

@ -9,12 +9,15 @@ inputs:
description: platform key
required: true
token:
description: github token
required: true
default: ${{ github.token }}
slack-webhook:
required: false
slack-channel:
required: false
# slack-webhook:
# description: slack webhook
# required: false
# slack-channel:
# description: slack channel
# required: false
runs:
using: composite
@ -54,13 +57,13 @@ runs:
logs: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
- uses: martialonline/workflow-status@v3
id: status
# - uses: martialonline/workflow-status@v3
# id: status
- uses: rtCamp/action-slack-notify@v2
if: ${{ inputs.slack-webhook != '' }}
env:
SLACK_WEBHOOK: ${{ inputs.slack-webhook }}
SLACK_CHANNEL: ${{ inputs.slack-channel }}
SLACK_MESSAGE: new-version:${{ inputs.projects }} (${{ inputs.platform }}) ${{ steps.status.outputs.status }}
SLACK_COLOR: ${{ steps.status.outputs.status }}
# - uses: rtCamp/action-slack-notify@v2
# if: ${{ inputs.slack-webhook != '' }}
# env:
# SLACK_WEBHOOK: ${{ inputs.slack-webhook }}
# SLACK_CHANNEL: ${{ inputs.slack-channel }}
# SLACK_MESSAGE: new-version:${{ inputs.projects }} (${{ inputs.platform }}) ${{ steps.status.outputs.status }}
# SLACK_COLOR: ${{ steps.status.outputs.status }}

View file

@ -66,5 +66,5 @@ jobs:
with:
projects: ${{ inputs.projects }}
platform: ${{ inputs.platform }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
slack-channel: ${{ secrets.SLACK_CHANNEL }}
# slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
# slack-channel: ${{ secrets.SLACK_CHANNEL }}