forked from OfficeDev/teams-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.49 KB
/
duplicate-app-studio-service-issue.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
name: duplicate issue check for app-studio-service
on:
issues:
types: [opened]
workflow_dispatch: # allows to run manually for testing
inputs:
issueNumber:
description: 'specific issue number to test duplicate issue check for app-studio-service action'
required: true
jobs:
main:
runs-on: ubuntu-latest
permissions:
issues: write
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/duplicate-handler-for-app-studio ./action-base/duplicate-handler-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 duplicate
uses: ./action-base/duplicate-handler-for-app-studio
with:
token: ${{secrets.GITHUB_TOKEN}}
reply: Based on the status code and API name in error message, this issue is duplicated with {{first}}. You can refer to it for more information.
adding-tags: close-wait,*duplicate
env:
ISSUE_NUMBER: ${{github.event.inputs.issueNumber}}