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

View file

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