-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (34 loc) · 1.15 KB
/
Copy pathnew-term.yml
File metadata and controls
36 lines (34 loc) · 1.15 KB
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
name: New Term Issue Flow
on:
issues:
types:
- labeled
permissions:
contents: read
jobs:
new-term:
runs-on: ubuntu-latest
permissions:
issues: write
env:
COMMENTS_PATH: .github/issue-comment-templates
steps:
- uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- run: echo "::debug::${{github.event.label.name}}"
- if: ${{github.event.label.name == 'term approved'}}
run: gh issue comment "$ISSUE_URL" -F "${COMMENTS_PATH}/term-approved.md"
env:
ISSUE_URL: ${{github.event.issue.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- if: ${{github.event.label.name == 'general approved'}}
run: gh issue comment "$ISSUE_URL" -F "${COMMENTS_PATH}/general-approved.md"
env:
ISSUE_URL: ${{github.event.issue.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- if: ${{github.event.label.name == 'software approved'}}
run: gh issue comment "$ISSUE_URL" -F "${COMMENTS_PATH}/software-approved.md"
env:
ISSUE_URL: ${{github.event.issue.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}