Skip to content

Commit 9148796

Browse files
committed
chore: define secrets
1 parent 6cada71 commit 9148796

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/create-github-release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: create-github-release
22
on:
33
workflow_call:
4+
secrets:
5+
SVC_CLI_BOT_GITHUB_TOKEN:
6+
description: A Github PAT with repo write access.
7+
required: true
8+
CLI_ALERTS_SLACK_WEBHOOK:
9+
description: Slack webhook for alerts.
10+
required: false
411
inputs:
512
prerelease:
613
type: string
@@ -101,7 +108,7 @@ jobs:
101108

102109
- name: Announce if Github Release was skipped
103110
id: slack
104-
if: ${{ steps.changelog.outputs.skipped == 'true' && github.actor != 'dependabot[bot]' }}
111+
if: ${{ steps.changelog.outputs.skipped == 'true' && github.actor != 'dependabot[bot]' && secrets.CLI_ALERTS_SLACK_WEBHOOK != '' }}
105112
uses: slackapi/slack-github-action@v1.26.0
106113
env:
107114
# for non-CLI-team-owned plugins, you can send this anywhere you like

0 commit comments

Comments
 (0)