-
Notifications
You must be signed in to change notification settings - Fork 274
👷 ci: add Slack notification step to CI/CD workflow #4553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+19
−0
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
79ffb4b
👷 ci: add Slack notification job to CI/CD workflow
Ostico 2dfbf8f
👷 ci: add empty permissions block to slack-notification job
Ostico 3b61cb9
👷 ci: use base_ref fallback for Slack notification title
Ostico 72c3b43
👷 ci: rename slackNotification job ID to kebab-case
Ostico 6119e6c
👷 ci: add needs and always() condition to slack-notification job
Ostico 4ce2fa3
🐛 fix(ci): use head_ref instead of base_ref for Slack notification title
Ostico 3a91162
🐛 fix(ci): capitalize GitHub and skip Slack notify on fork PRs
Ostico File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -223,3 +223,22 @@ jobs: | |
| coverage-threshold: '80' | ||
| exclude-patterns: '.github/**' | ||
| ai-enabled: 'true' | ||
|
|
||
| slack-notification: | ||
| name: Slack Notification | ||
| runs-on: ubuntu-24.04 | ||
|
Ostico marked this conversation as resolved.
|
||
| needs: | ||
| - tests | ||
| - deploy | ||
| - test-guard | ||
| if: >- | ||
| always() && | ||
| (github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork) | ||
| permissions: {} | ||
| steps: | ||
| - name: Slack Notification | ||
|
Ostico marked this conversation as resolved.
|
||
| uses: rtCamp/action-slack-notify@v2 | ||
| env: | ||
|
Ostico marked this conversation as resolved.
|
||
| SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
| SLACK_CHANNEL: travis-ci | ||
| SLACK_TITLE: GitHub CI/CD Pipeline Complete for ${{ github.head_ref || github.ref_name }} | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.