Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Telegram Notification
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tools
Continuous Integration
Telegram Notification
Commits
22710ae4
Commit
22710ae4
authored
Jan 20, 2023
by
Dmitriy Safronov
Browse files
Options
Downloads
Patches
Plain Diff
rules
parent
2ef4c8c4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
gitlab-ci.yml
+6
-2
6 additions, 2 deletions
gitlab-ci.yml
with
6 additions
and
2 deletions
gitlab-ci.yml
+
6
−
2
View file @
22710ae4
...
@@ -33,7 +33,9 @@ telegram-notification_success:
...
@@ -33,7 +33,9 @@ telegram-notification_success:
NOTIFICATION_ICON
:
"
✅"
NOTIFICATION_ICON
:
"
✅"
NOTIFICATION_TYPE
:
"
succeeded"
NOTIFICATION_TYPE
:
"
succeeded"
rules
:
rules
:
-
when
:
on_success
-
if
:
'
(
$CI_PIPELINE_SOURCE
==
"push"
||
$CI_PIPELINE_SOURCE
==
"schedule"
)
&&
$CI_COMMIT_BRANCH
=~
$CUSTOM_BRANCHES'
when
:
on_success
-
when
:
never
telegram-notification_failure
:
telegram-notification_failure
:
extends
:
.common_telegram-notification
extends
:
.common_telegram-notification
...
@@ -41,4 +43,6 @@ telegram-notification_failure:
...
@@ -41,4 +43,6 @@ telegram-notification_failure:
NOTIFICATION_ICON
:
"
💥"
NOTIFICATION_ICON
:
"
💥"
NOTIFICATION_TYPE
:
"
failed"
NOTIFICATION_TYPE
:
"
failed"
rules
:
rules
:
-
when
:
on_failure
-
if
:
'
(
$CI_PIPELINE_SOURCE
==
"push"
||
$CI_PIPELINE_SOURCE
==
"schedule"
)
&&
$CI_COMMIT_BRANCH
=~
$CUSTOM_BRANCHES'
when
:
on_failure
-
when
:
never
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment