Skip to content

Commit

Permalink
fix: add missing configuration for non-default Slack channel messages (
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding committed May 14, 2024
1 parent ceb76b5 commit 998537f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ runs:
"username": "${{ inputs.username }}",
"channel": "#${{ inputs.channel }}"
}
env:
SLACK_WEBHOOK_URL: ${{ inputs.slack-webhook-url }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
continue-on-error: true
- name: Post to a default Slack channel
if: ${{ inputs.slack-webhook-url != '' && inputs.channel == '' }}
uses: slackapi/slack-github-action@007b2c3c751a190b6f0f040e47ed024deaa72844
Expand Down

0 comments on commit 998537f

Please sign in to comment.