mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
fix: slack annoucement workflow (#46)
This commit is contained in:
parent
8d05c9f890
commit
dc6d696af6
1 changed files with 10 additions and 1 deletions
11
.github/workflows/slack-announcements.yml
vendored
11
.github/workflows/slack-announcements.yml
vendored
|
|
@ -11,7 +11,16 @@ jobs:
|
|||
- name: Check if announcement
|
||||
id: check
|
||||
run: |
|
||||
# GitHub API check to verify it's in announcements category
|
||||
# Check if the discussion is in the announcements category
|
||||
CATEGORY="${{ github.event.discussion.category.slug }}"
|
||||
echo "Category: $CATEGORY"
|
||||
|
||||
# Check for both possible variations
|
||||
if [ "$CATEGORY" = "announcements" ] || [ "$CATEGORY" = "announcement" ]; then
|
||||
echo "is_announcement=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "is_announcement=false" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: Post to Slack
|
||||
if: steps.check.outputs.is_announcement == 'true'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue