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 authored May 14, 2024
1 parent ff95ee6 commit 272ea69
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 @@ -78,6 +78,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 272ea69

Please sign in to comment.