Skip to content

Commit 6164b07

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. Reviewers: tstellar, cmtice Reviewed By: cmtice Pull Request: #170209
1 parent c5e6f4e commit 6164b07

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-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
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

0 commit comments

Comments
 (0)