Skip to content

Commit f14fa58

Browse files
committed
Add missing Slack notifications to update-adapter workflow
1 parent 1b996f9 commit f14fa58

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/update-adapter.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,30 @@ jobs:
7979
--base master \
8080
--head "$BRANCH"
8181
fi
82+
83+
# Capture PR URL for Slack notification
84+
PR_URL=$(gh pr view "$BRANCH" --repo "$GITHUB_REPOSITORY" --json url --jq .url 2>/dev/null || echo "")
85+
echo "PR_URL=$PR_URL" >> "$GITHUB_ENV"
86+
echo "PR_OPENED=true" >> "$GITHUB_ENV"
87+
88+
# ────────────────────────────────────────────────────────────────────────
89+
# Slack notifications
90+
# ────────────────────────────────────────────────────────────────────────
91+
92+
- name: Slack success notification
93+
if: success() && env.PR_OPENED == 'true'
94+
env:
95+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
96+
SLACK_IOS_RELEASES_CHANNEL: ${{ secrets.SLACK_IOS_RELEASES_CHANNEL }}
97+
STATUS: success
98+
DEMO_TITLE: "AppLovin Waterfall Demo"
99+
run: bash .github/scripts/notify-slack.sh
100+
101+
- name: Slack failure notification
102+
if: failure()
103+
env:
104+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
105+
SLACK_IOS_RELEASES_CHANNEL: ${{ secrets.SLACK_IOS_RELEASES_CHANNEL }}
106+
STATUS: failure
107+
DEMO_TITLE: "AppLovin Waterfall Demo"
108+
run: bash .github/scripts/notify-slack.sh

0 commit comments

Comments
 (0)