Skip to content

Commit b27d415

Browse files
committed
test
1 parent 0f278dc commit b27d415

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/issuetest.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Create Issue on Workflow Dispatch
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
create-issue:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Create issue assigned to actor
11+
uses: actions/github-script@v7
12+
with:
13+
script: |
14+
github.rest.issues.create({
15+
owner: context.repo.owner,
16+
repo: context.repo.repo,
17+
title: "Workflow triggered by ${{ github.actor }}",
18+
body: "This issue was automatically created when the workflow was launched.",
19+
assignees: [context.actor]
20+
})

0 commit comments

Comments
 (0)