Skip to content

Commit

Permalink
Update ejercicio3.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
EperezStemdo authored May 1, 2024
1 parent 9df9596 commit 5c8743b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ejercicio3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@ jobs:
gh issue create --title "I found a bug" --body "${issue_body}" -a "EperezStemdo"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get PR metadata
id: pr_meta
uses: fregante/pull-request-metadata@v2
- name: Extract issue number
id: extract_issue_number
run: |
pr_url="${{ github.event.pull_request.html_url }}" #url de la pr
issue_number=$(echo "$pr_url" | grep -oE '[0-9]+$')
echo "::set-output name=id::$issue_number"
- name: Añadir closes a la pr
run: |
gh pr edit ${{ github.event.number }} --body "Close #${{ steps.issue.outputs.id }}"
gh pr edit ${{ github.event.number }} --body "Close #${{ steps.extract_issue_number.outputs.id }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit 5c8743b

Please sign in to comment.