Create Issue on Workflow Dispatch #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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] | |
| }) |