Skip to content

Commit

Permalink
Update nuevo.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
chokecoDev authored Oct 3, 2024
1 parent e9cf08a commit f44fe78
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/nuevo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Create Issue
uses: peter-evans/create-issue-from-file@v3
uses: actions/github-script@v6
with:
title: ${{ github.event.inputs.title }}
body: ${{ github.event.inputs.body }}
script: |
const title = '${{ github.event.inputs.title }}';
const body = '${{ github.event.inputs.body || '' }}';
const { data: issue } = await github.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
title,
body
});
console.log(`Issue created: ${issue.html_url}`);

0 comments on commit f44fe78

Please sign in to comment.