-
Notifications
You must be signed in to change notification settings - Fork 905
42 lines (37 loc) · 1.37 KB
/
create_doc_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
name: Create Documentation Issue
on:
pull_request_target:
types:
- labeled
env:
PR_NUMBER: ${{ github.event.number }}
jobs:
create-issue:
if: ${{ github.event.label.name == 'needs-documentation' }}
runs-on: ubuntu-latest
name: Create Documentation Issue
steps:
- name: GitHub App token
id: github_app_token
uses: tibdex/[email protected]
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
# opensearch-trigger-bot installation ID
installation_id: 22958780
- name: Checkout code
uses: actions/checkout@v2
- name: Edit the issue template
run: |
echo "https://github.com/opensearch-project/OpenSearch-Dashboards/pull/${{ env.PR_NUMBER }}." >> ./.github/doc_issue_template.md
- name: Create Issue From File
id: create-issue
uses: peter-evans/create-issue-from-file@v4
with:
title: Add documentation related to new feature
content-filepath: ./.github/doc_issue_template.md
labels: dashboards
repository: opensearch-project/documentation-website
token: ${{ steps.github_app_token.outputs.token }}
- name: Print Issue
run: echo "Created related documentation issue ${{ steps.create-issue.outputs.issue-number }}"