-
Notifications
You must be signed in to change notification settings - Fork 8
39 lines (33 loc) · 1011 Bytes
/
issue-sync.yaml
File metadata and controls
39 lines (33 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Issue Notification
on:
issues:
types: ['opened', 'reopened']
permissions:
contents: read
pull-requests: read
jobs:
sync:
name: Sync Issues
runs-on: ubuntu-latest
env:
NODE_VERSION: '18'
LARK_APP_ID: ${{ secrets.COZELOOP_LARK_APP_ID }}
LARK_APP_SECRET: ${{ secrets.COZELOOP_LARK_APP_SECRET }}
ISSUE_ACTION: ${{ github.event.action }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
ISSUE_URL: ${{ github.event.issue.html_url }}
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_BODY: ${{ github.event.issue.body }}
REPO_NAME: ${{ github.repository }}
steps:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install ci-tools
run: |
npm install -g @cozeloop/ci-tools@0.0.4
- name: Notify via lark
run: |
cozeloop-ci lark sync-issue \
--chat-id oc_72317b3108b14bd63359a6582cf45443