-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Bug
The Notify Sync PR job in gptchangelog.yml fails when the SLACK_WEBHOOK_URL secret is not configured in the calling repository.
Error
SLACK_WEBHOOK_URL:
Error: Need to provide at least one botToken or webhookUrl
Workflow run: https://github.com/LerianStudio/console-sdk/actions/runs/23544924759/job/68542780018
Expected behavior
The job should check if SLACK_WEBHOOK_URL is set before calling slackapi/slack-github-action. If not configured, it should log a warning and exit 0 instead of failing the job.
Suggested fix
Add a guard step before the Slack notification:
- name: Check if Slack webhook is configured
id: check-slack
run: |
if [ -z "${{ secrets.SLACK_WEBHOOK_URL }}" ]; then
echo "skip=true" >> $GITHUB_OUTPUT
echo "⚠️ SLACK_WEBHOOK_URL not configured, skipping notification"
fi
- name: Send Slack notification
if: steps.check-slack.outputs.skip != 'true'
uses: slackapi/slack-github-action@v1.24.0
...Context
Repository console-sdk uses gptchangelog.yml@v1.18.1 with secrets: inherit. The SLACK_WEBHOOK_URL secret is not yet configured, causing the changelog pipeline to fail on an optional notification step.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels