-
Notifications
You must be signed in to change notification settings - Fork 196
52 lines (48 loc) · 1.74 KB
/
app-studio-service-issue-assign.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
name: issue assigned for app-studio-service
on:
issues:
types: [assigned]
workflow_dispatch: # allows to run manually for testing
inputs:
issueNumber:
description: 'specific issue number to test issue assigned for app-studio-service action'
required: true
jobs:
main:
runs-on: ubuntu-latest
permissions:
issues: read
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout github action repository
uses: actions/checkout@v3
with:
repository: "microsoft/vscode-github-triage-actions"
ref: stable
path: ./action-base
- name: Copy action
run: |
cp -r .github/actions/issue-assigned-for-app-studio ./action-base/issue-assigned-for-app-studio
cp -r .github/actions/teamsfx-utils ./action-base/teamsfx-utils
- name: Npm install
run: npm install --production --prefix ./action-base
- name: Build action
continue-on-error: true
run: npm run build --prefix ./action-base
- name: Check assigned issue for app-studio-service
id: check
uses: ./action-base/issue-assigned-for-app-studio
with:
token: ${{secrets.GITHUB_TOKEN}}
env:
ISSUE_NUMBER: ${{github.event.inputs.issueNumber}}
- name: Send E-mail to issue assignee
uses: ./.github/actions/send-email-report
env:
TO: ${{ steps.check.outputs.to }}
BODY: '"${{ steps.check.outputs.body }}"'
SUBJECT: ${{ steps.check.outputs.subject }}
MAIL_CLIENT_ID: ${{ secrets.TEST_CLEAN_CLIENT_ID }}
MAIL_CLIENT_SECRET: ${{ secrets.TEST_CLEAN_CLIENT_SECRET }}
MAIL_TENANT_ID: ${{ secrets.TEST_CLEAN_TENANT_ID }}