Skip to content

Commit d7cc2ce

Browse files
[Github] Add workflow to test the issue write workflow
This does not test most of the functionality (i.e., that writing to an existing comment still works), but does ensure that the plumbing works and things are not completely broken. Pull Request: llvm#170209
1 parent 3ca85e7 commit d7cc2ce

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Test Issue Write Workflow
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
pull_request:
8+
paths:
9+
- '.github/workflows/issue-write-test.yaml'
10+
11+
jobs:
12+
test-issue-write:
13+
name: "Test Issue Write"
14+
runs-on: ubuntu-24.04
15+
if: github.repository == 'llvm/llvm-project'
16+
steps:
17+
- name: Write Comment
18+
run: |
19+
echo '[{"body": "This is a comment for testing the issue write workflow"}]' > comments
20+
- name: Upload Comment
21+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
22+
with:
23+
name: workflow-args
24+
path: |
25+
comments

.github/workflows/issue-write.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
- "PR Request Release Note"
99
- "Code lint"
1010
- "CI Checks"
11+
- "Test Issue Write"
1112
types:
1213
- completed
1314

0 commit comments

Comments
 (0)