Skip to content

Commit

Permalink
ci: Finally will this send??
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanFreestone committed Sep 17, 2024
1 parent 8abdf85 commit 0a11ad0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/validate-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
retention-days: 1
- name: Setup validate_module_descriptor_errors file
if: failure()
## Make sure we convert to JSON-safe text before we try to send later
run: echo "$(cat validate_module_descriptor_output.txt)" | grep "\[ERROR\]" | tee validate_module_descriptor_errors.txt
- name: Comment failures on PR
if: failure()
Expand All @@ -69,4 +68,4 @@ jobs:
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
COMMENT_URL="https://api.github.com/repos/${{ github.repository }}/issues/${PR_NUMBER}/comments"
echo "SENDING TO: $COMMENT_URL"
curl -s -H "Authorization: token ${GITHUB_TOKEN}" -X POST $COMMENT_URL --data "{ \"body\": $(cat validate_module_descriptor_errors.txt) }"
curl -s -H "Authorization: token ${GITHUB_TOKEN}" -X POST $COMMENT_URL --data "{ \"body\": $(cat validate_module_descriptor_errors.txt | jq -Rs) }"

0 comments on commit 0a11ad0

Please sign in to comment.