Skip to content

Create Issue on Workflow Dispatch #1

Create Issue on Workflow Dispatch

Create Issue on Workflow Dispatch #1

Workflow file for this run

name: Create Issue on Workflow Dispatch
on:
workflow_dispatch:
jobs:
create-issue:
runs-on: ubuntu-latest
steps:
- name: Create issue assigned to actor
uses: actions/github-script@v7
with:
script: |
github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: "Workflow triggered by ${{ github.actor }}",
body: "This issue was automatically created when the workflow was launched.",
assignees: [context.actor]
})