Skip to content

Commit

Permalink
Fix action that generates summary
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosedp committed Mar 19, 2024
1 parent 04f1a71 commit 191e009
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/update-index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@ jobs:
GH_TOKEN: ${{ secrets.INDEX_GITHUB_TOKEN }}
- name: Create Pull Request
id: cpr
uses: peter-evans/[email protected].2
uses: peter-evans/[email protected].1
with:
commit-message: Update index
author: GitHub <[email protected]>
delete-branch: true
title: Update index
- name: Check Pull Request
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" >> $GITHUB_STEP_SUMMARY
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" >> $GITHUB_STEP_SUMMARY
- name: Generate Job Summary
run: |-
PR_NUMBER=$(echo "${{ steps.cpr.outputs.pull-request-url }}" | awk -F'/' '{print $NF}')
PR_URL=$(echo "${{ steps.cpr.outputs.pull-request-url }}")
echo "## Index Update Summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "Pull Request Number - **${PR_NUMBER}**" >> $GITHUB_STEP_SUMMARY
echo "Pull Request URL - **${PR_URL}**" >> $GITHUB_STEP_SUMMARY

0 comments on commit 191e009

Please sign in to comment.