-
Notifications
You must be signed in to change notification settings - Fork 80
39 lines (35 loc) · 1.24 KB
/
create-docs-issues.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
name: Create documentation ticket
on:
pull_request_target:
branches:
- main
types:
- closed
jobs:
create-docs-ticket:
# Only on merged PRs that contain the DocumentationNeeded flag
if: github.event.pull_request.merged && contains(github.event.pull_request.labels.*.name, 'DocumentationNeeded')
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Create Issues
id: create-issues
uses: actions/github-script@v7
with:
github-token: ${{ secrets.DOCS_ISSUES_PAT }}
script: |
const script = require('.github/workflows/create-docs-issues.js');
await script({github, context});
- name: Slack Failure Message
uses: slackapi/[email protected]
id: slack-failure-message
if: failure() && github.ref == 'refs/heads/main' && github.repository_owner == 'deephaven'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_DEVREL }}
with:
payload: |
{
"repository": "${{ github.repository }}",
"message": "${{ github.workflow }}/${{ github.job }} failure",
"link": "${{ github.event.pull_request.html_url }}"
}