Skip to content

Commit

Permalink
Update tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
oklopfer authored Aug 31, 2024
1 parent a1ddc0d commit 36b102a
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -334,20 +334,11 @@ jobs:
uses: actions/download-artifact@v4
- name: Aggregate and Update PR Description
run: |
STATUS_SUMMARY=""
for FILE in job-status*/*.txt; do
STATUS=$(cat $FILE)
STATUS_SUMMARY="${STATUS_SUMMARY}
- ${STATUS}"
done
STATUS_SUMMARY=$(for FILE in job-status*/*.txt; do cat "$FILE"; done | sed 's/^/- /')
PR_DESCRIPTION=$(gh pr view ${{ github.event.pull_request.number }} --json body -q ".body")
PR_DESCRIPTION=$(echo "$PR_DESCRIPTION" | sed -e '/### CI Status Summary:/Q')
UPDATED_DESCRIPTION="${PR_DESCRIPTION}
UPDATED_DESCRIPTION="$(echo "$PR_DESCRIPTION" | sed -e '/### CI Status Summary:/Q')
### CI Status Summary:
${STATUS_SUMMARY}"
gh pr edit ${{ github.event.pull_request.number }} --body "$UPDATED_DESCRIPTION"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 36b102a

Please sign in to comment.