Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
getty
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wei.xuan
getty
Commits
ef4aaa4a
Commit
ef4aaa4a
authored
Dec 28, 2020
by
AlexStocks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remark dingding notification
parent
1bcef0bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
40 deletions
+40
-40
github-actions.yml
.github/workflows/github-actions.yml
+40
-40
No files found.
.github/workflows/github-actions.yml
View file @
ef4aaa4a
...
...
@@ -71,43 +71,43 @@ jobs:
-
name
:
Coverage
run
:
bash <(curl -s https://codecov.io/bash)
# Because the contexts of push and PR are different, there are two Notify.
# Notifications are triggered only in the apache/dubbo-getty repository.
-
name
:
DingTalk Message Notify only Push
uses
:
zcong1993/actions-ding@v3.0.1
# Whether job is successful or not, always () is always true.
if
:
|
always() &&
github.event_name == 'push' &&
github.repository == 'apache/dubbo-getty'
with
:
# DingDing bot token
dingToken
:
${{ env.DING_TOKEN }}
secret
:
${{ env.DING_SIGN }}
# Post Body to send
body
:
|
{
"msgtype": "markdown",
"markdown": {
"title": "Github Actions",
"text": "## Github Actions \n - name: CI \n - repository: ${{ github.repository }} \n - trigger: ${{ github.actor }} \n - event: ${{ github.event_name }} \n - ref: ${{ github.ref }} \n - status: [${{ job.status }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) \n - environment: ${{ runner.os }} \n - SHA: [${{ github.sha }}](${{ github.event.compare }})"
}
}
-
name
:
DingTalk Message Notify only PR
uses
:
zcong1993/actions-ding@v3.0.1
if
:
|
always() &&
github.event_name == 'pull_request' &&
github.repository == 'apache/dubbo-getty'
with
:
dingToken
:
${{ env.DING_TOKEN }}
secret
:
${{ env.DING_SIGN }}
body
:
|
{
"msgtype": "markdown",
"markdown": {
"title": "Github Actions",
"text": "## Github Actions \n - name: CI \n - repository: ${{ github.repository }} \n - pr_title: **${{ github.event.pull_request.title }}** \n - trigger: ${{ github.actor }} \n - event: ${{ github.event_name }} \n - ref: [${{ github.ref }}](${{ github.event.pull_request._links.html.href }}) \n - status: [${{ job.status }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) \n - environment: ${{ runner.os }} \n > SHA: [${{ github.sha }}](${{ github.event.pull_request._links.html.href }})"
}
}
#
#
Because the contexts of push and PR are different, there are two Notify.
#
#
Notifications are triggered only in the apache/dubbo-getty repository.
#
- name: DingTalk Message Notify only Push
#
uses: zcong1993/actions-ding@v3.0.1
#
#
Whether job is successful or not, always () is always true.
#
if: |
#
always() &&
#
github.event_name == 'push' &&
#
github.repository == 'apache/dubbo-getty'
#
with:
#
# DingDing bot token
#
dingToken: ${{ env.DING_TOKEN }}
#
secret: ${{ env.DING_SIGN }}
#
# Post Body to send
#
body: |
#
{
#
"msgtype": "markdown",
#
"markdown": {
#
"title": "Github Actions",
#
"text": "## Github Actions \n - name: CI \n - repository: ${{ github.repository }} \n - trigger: ${{ github.actor }} \n - event: ${{ github.event_name }} \n - ref: ${{ github.ref }} \n - status: [${{ job.status }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) \n - environment: ${{ runner.os }} \n - SHA: [${{ github.sha }}](${{ github.event.compare }})"
#
}
#
}
#
#
- name: DingTalk Message Notify only PR
#
uses: zcong1993/actions-ding@v3.0.1
#
if: |
#
always() &&
#
github.event_name == 'pull_request' &&
#
github.repository == 'apache/dubbo-getty'
#
with:
#
dingToken: ${{ env.DING_TOKEN }}
#
secret: ${{ env.DING_SIGN }}
#
body: |
#
{
#
"msgtype": "markdown",
#
"markdown": {
#
"title": "Github Actions",
#
"text": "## Github Actions \n - name: CI \n - repository: ${{ github.repository }} \n - pr_title: **${{ github.event.pull_request.title }}** \n - trigger: ${{ github.actor }} \n - event: ${{ github.event_name }} \n - ref: [${{ github.ref }}](${{ github.event.pull_request._links.html.href }}) \n - status: [${{ job.status }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) \n - environment: ${{ runner.os }} \n > SHA: [${{ github.sha }}](${{ github.event.pull_request._links.html.href }})"
#
}
#
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment