-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First attempt at nightly build notification
- Loading branch information
1 parent
19fc7cf
commit 0d77250
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,3 +186,35 @@ jobs: | |
- name: Run CocoaPods Integration Tests | ||
id: run-cocoapods-integration-tests | ||
uses: ./.github/actions/run-cocoapods-integration-tests | ||
|
||
send-slack-status-notification: | ||
runs-on: macos-latest | ||
if: ${{ always() }} | ||
timeout-minutes: 5 | ||
needs: [tuist-generation, run-swift-builds, build-and-unit-test, run-codegen-test-configurations, run-cocoapods-integration-tests] | ||
name: Send Slack status notification | ||
steps: | ||
- uses: slackapi/[email protected] | ||
with: | ||
channel-id: ${{ secrets.APOLLO_IOS_HEALTH_SLACK_CHANNEL_ID }} | ||
payload: | | ||
{ | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "`Main` Branch Health (${{ github.event.head_commit.url }}): ${{ github.action_status }}" | ||
} | ||
}, | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "${{ jobs.tuist-generation.name }}: ${{ jobs.tuist-generation.result }}" | ||
} | ||
} | ||
] | ||
} | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} |