Skip to content

Commit

Permalink
fix: use file-based JSON payload for check run API calls
Browse files Browse the repository at this point in the history
Co-Authored-By: Aaron <AJ> Steers <[email protected]>
  • Loading branch information
devin-ai-integration[bot] and aaronsteers committed Jan 23, 2025
1 parent ab08f2b commit c5daa88
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/dummy_check_result.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
GH_TOKEN: ${{ github.token }}
run: |
HEAD_SHA="${{ github.event.pull_request.head.sha || github.sha }}"
# Create JSON payload file
echo '{"title":"Success Check","summary":"This is a dummy success check."}' > output.json
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
Expand All @@ -30,7 +34,7 @@ jobs:
-f status="completed" \
-f conclusion="success" \
-f details_url="https://www.google.com/search?q=success" \
--raw-field output='{"title":"Success Check","summary":"This is a dummy success check."}'
-F output=@output.json
failure_check:
name: "Dummy Check (fail)"
Expand All @@ -44,6 +48,10 @@ jobs:
GH_TOKEN: ${{ github.token }}
run: |
HEAD_SHA="${{ github.event.pull_request.head.sha || github.sha }}"
# Create JSON payload file
echo '{"title":"Failure Check","summary":"This is a dummy failure check."}' > output.json
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
Expand All @@ -54,4 +62,4 @@ jobs:
-f status="completed" \
-f conclusion="failure" \
-f details_url="https://www.google.com/search?q=failed" \
--raw-field output='{"title":"Failure Check","summary":"This is a dummy failure check."}'
-F output=@output.json

0 comments on commit c5daa88

Please sign in to comment.