File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,9 +106,18 @@ jobs:
106106 token : ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }}
107107 skipIfReleaseExists : true
108108
109+ - name : Check for Slack webhook
110+ id : check-slack
111+ run : |
112+ if [ -n "$SLACK_WEBHOOK" ]; then
113+ echo "has_webhook=true" >> "$GITHUB_OUTPUT"
114+ fi
115+ env :
116+ SLACK_WEBHOOK : ${{ secrets.CLI_ALERTS_SLACK_WEBHOOK }}
117+
109118 - name : Announce if Github Release was skipped
110119 id : slack
111- if : ${{ steps.changelog.outputs.skipped == 'true' && github.actor != 'dependabot[bot]' && secrets.CLI_ALERTS_SLACK_WEBHOOK != ' ' }}
120+ if : ${{ steps.changelog.outputs.skipped == 'true' && github.actor != 'dependabot[bot]' && steps.check-slack.outputs.has_webhook == 'true ' }}
112121 uses : slackapi/slack-github-action@v1.26.0
113122 env :
114123 # for non-CLI-team-owned plugins, you can send this anywhere you like
You can’t perform that action at this time.
0 commit comments