Skip to content

Commit

Permalink
Correcion del workflow de GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosandresalzate committed Jun 6, 2024
1 parent 6dc0be0 commit 1148c5a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const issues = await github.paginate(github.issues.listForRepo, {
const { data: issues } = await github.rest.issues.listForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
per_page: 100,
Expand All @@ -26,13 +26,11 @@ jobs:
const issueList = issues.map(issue => `* [${issue.title}](${issue.html_url})`).join('\n');
return {
issues: issueList
};
return issueList;
- name: Actualizar Readme
run: |
issue_list="${{ steps.obtener_lista_issues.outputs.issues }}"
issue_list="${{ steps.obtener_lista_issues.outputs.result }}"
# Usamos sed para reemplazar la sección de Issues Abiertas en el README.md
sed -i '/## Issues Abiertas/,$d' README.md
echo -e "## Issues Abiertas\n\n$issue_list\n" >> README.md
Expand Down

0 comments on commit 1148c5a

Please sign in to comment.